pub struct Header { /* private fields */ }
Expand description
Parsed representation of X-Amzn-Trace-Id
request header
Implementations§
Source§impl Header
impl Header
Sourcepub const NAME: &'static str = "X-Amzn-Trace-Id"
pub const NAME: &'static str = "X-Amzn-Trace-Id"
HTTP header name associated with X-Ray trace data
HTTP header values should be the Display serialization of Header structs
pub fn new(trace_id: TraceId) -> Self
pub fn with_parent_id(&mut self, parent_id: SegmentId) -> &mut Self
pub fn with_sampling_decision( &mut self, decision: SamplingDecision, ) -> &mut Self
pub fn with_data<K, V>(&mut self, key: K, value: V) -> &mut Self
Trait Implementations§
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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