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) -> EnvelopeHeaders
pub fn with_event_id(self, event_id: Uuid) -> EnvelopeHeaders
Sets the Event ID.
Sourcepub fn with_dsn(self, dsn: Dsn) -> EnvelopeHeaders
pub fn with_dsn(self, dsn: Dsn) -> EnvelopeHeaders
Sets the DSN.
Sourcepub fn with_sdk(self, sdk: ClientSdkInfo) -> EnvelopeHeaders
pub fn with_sdk(self, sdk: ClientSdkInfo) -> EnvelopeHeaders
Sets the SDK information.
Sourcepub fn with_sent_at(self, sent_at: SystemTime) -> EnvelopeHeaders
pub fn with_sent_at(self, sent_at: SystemTime) -> EnvelopeHeaders
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) -> EnvelopeHeaders
pub fn with_trace(self, trace: DynamicSamplingContext) -> EnvelopeHeaders
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<EnvelopeHeaders, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EnvelopeHeaders, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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