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
sourcepub fn with_parent_id(&self, parent_id: SegmentId) -> Self
pub fn with_parent_id(&self, parent_id: SegmentId) -> Self
Creates a new Header with the parent ID replaced.
sourcepub fn with_sampling_decision(&self, decision: SamplingDecision) -> Self
pub fn with_sampling_decision(&self, decision: SamplingDecision) -> Self
Creates a new Header with the sampling decision replaced.
Trait Implementations§
source§impl PartialEq for Header
impl PartialEq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
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