Struct sentry_core::protocol::SessionUpdate
source · [−]pub struct SessionUpdate<'a> {
pub session_id: Uuid,
pub distinct_id: Option<String>,
pub sequence: Option<u64>,
pub timestamp: Option<SystemTime>,
pub started: SystemTime,
pub init: bool,
pub duration: Option<f64>,
pub status: SessionStatus,
pub errors: u64,
pub attributes: SessionAttributes<'a>,
}
Expand description
A Release Health Session.
Refer to the Sessions documentation for more details.
Fields
session_id: Uuid
The session identifier.
distinct_id: Option<String>
The distinct identifier. Should be device or user ID.
sequence: Option<u64>
An optional logical clock.
timestamp: Option<SystemTime>
The timestamp of when the session change event was created.
started: SystemTime
The timestamp of when the session itself started.
init: bool
A flag that indicates that this is the initial transmission of the session.
duration: Option<f64>
An optional duration of the session so far.
status: SessionStatus
The status of the session.
errors: u64
The number of errors that ocurred.
attributes: SessionAttributes<'a>
The session event attributes.
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SessionUpdate<'a>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SessionUpdate<'a>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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
Auto Trait Implementations
impl<'a> RefUnwindSafe for SessionUpdate<'a>
impl<'a> Send for SessionUpdate<'a>
impl<'a> Sync for SessionUpdate<'a>
impl<'a> Unpin for SessionUpdate<'a>
impl<'a> UnwindSafe for SessionUpdate<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more