pub struct EnvelopeHeaders { /* private fields */ }
Expand description
The supported Sentry Envelope Headers.
Implementations§
Source§impl EnvelopeHeaders
impl EnvelopeHeaders
Sourcepub fn new() -> EnvelopeHeaders
pub fn new() -> EnvelopeHeaders
Creates empty Envelope headers.
Sourcepub fn with_event_id(self, event_id: Uuid) -> Self
pub fn with_event_id(self, event_id: Uuid) -> Self
Sets the Event ID.
Sourcepub fn with_sdk(self, sdk: ClientSdkInfo) -> Self
pub fn with_sdk(self, sdk: ClientSdkInfo) -> Self
Sets the SDK information.
Sourcepub fn with_sent_at(self, sent_at: SystemTime) -> Self
pub fn with_sent_at(self, sent_at: SystemTime) -> Self
Sets the time this envelope was sent at. This timestamp should be generated as close as possible to the transmission of the event.
Sourcepub fn with_trace(self, trace: DynamicSamplingContext) -> Self
pub fn with_trace(self, trace: DynamicSamplingContext) -> Self
Sets the Dynamic Sampling Context.
Trait Implementations§
Source§impl Clone for EnvelopeHeaders
impl Clone for EnvelopeHeaders
Source§fn clone(&self) -> EnvelopeHeaders
fn clone(&self) -> EnvelopeHeaders
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EnvelopeHeaders
impl Debug for EnvelopeHeaders
Source§impl Default for EnvelopeHeaders
impl Default for EnvelopeHeaders
Source§fn default() -> EnvelopeHeaders
fn default() -> EnvelopeHeaders
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EnvelopeHeaders
impl<'de> Deserialize<'de> for EnvelopeHeaders
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EnvelopeHeaders
impl PartialEq for EnvelopeHeaders
Source§impl Serialize for EnvelopeHeaders
impl Serialize for EnvelopeHeaders
impl StructuralPartialEq for EnvelopeHeaders
Auto Trait Implementations§
impl Freeze for EnvelopeHeaders
impl RefUnwindSafe for EnvelopeHeaders
impl Send for EnvelopeHeaders
impl Sync for EnvelopeHeaders
impl Unpin for EnvelopeHeaders
impl UnwindSafe for EnvelopeHeaders
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