pub struct SqlCommenterTrace<'a> {
pub traceparent: &'a str,
pub tracestate: Option<&'a str>,
}Expand description
A trace context read out of a sqlcommenter tag, borrowed from the statement.
The traceparent has already passed validation against the W3C format.
The fields hold the values exactly as they appeared in the comment. The
sqlcommenter format percent-encodes them. That does nothing to a
traceparent, but it can leave a tracestate encoded, and
crate::TraceCarrier::from_w3c drops a tracestate it cannot parse.
Fields§
§traceparent: &'a strThe traceparent list value, guaranteed to parse.
tracestate: Option<&'a str>The tracestate list value, when the comment carried one.
Trait Implementations§
Source§impl<'a> Clone for SqlCommenterTrace<'a>
impl<'a> Clone for SqlCommenterTrace<'a>
Source§fn clone(&self) -> SqlCommenterTrace<'a>
fn clone(&self) -> SqlCommenterTrace<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for SqlCommenterTrace<'a>
impl<'a> Debug for SqlCommenterTrace<'a>
impl<'a> Eq for SqlCommenterTrace<'a>
Source§impl<'a> PartialEq for SqlCommenterTrace<'a>
impl<'a> PartialEq for SqlCommenterTrace<'a>
Source§fn eq(&self, other: &SqlCommenterTrace<'a>) -> bool
fn eq(&self, other: &SqlCommenterTrace<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for SqlCommenterTrace<'a>
Auto Trait Implementations§
impl<'a> Freeze for SqlCommenterTrace<'a>
impl<'a> RefUnwindSafe for SqlCommenterTrace<'a>
impl<'a> Send for SqlCommenterTrace<'a>
impl<'a> Sync for SqlCommenterTrace<'a>
impl<'a> Unpin for SqlCommenterTrace<'a>
impl<'a> UnsafeUnpin for SqlCommenterTrace<'a>
impl<'a> UnwindSafe for SqlCommenterTrace<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more