Struct sentry_types::protocol::v7::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
sourceimpl<'a> Clone for SessionUpdate<'a>
impl<'a> Clone for SessionUpdate<'a>
sourcefn clone(&self) -> SessionUpdate<'a>
fn clone(&self) -> SessionUpdate<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for SessionUpdate<'a>
impl<'a> Debug for SessionUpdate<'a>
sourceimpl<'de, 'a> Deserialize<'de> for SessionUpdate<'a>
impl<'de, 'a> Deserialize<'de> for SessionUpdate<'a>
sourcefn 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
sourceimpl From<SessionUpdate<'static>> for EnvelopeItem
impl From<SessionUpdate<'static>> for EnvelopeItem
sourcefn from(session: SessionUpdate<'static>) -> Self
fn from(session: SessionUpdate<'static>) -> Self
Converts to this type from the input type.
sourceimpl<'a> PartialEq<SessionUpdate<'a>> for SessionUpdate<'a>
impl<'a> PartialEq<SessionUpdate<'a>> for SessionUpdate<'a>
sourcefn eq(&self, other: &SessionUpdate<'a>) -> bool
fn eq(&self, other: &SessionUpdate<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SessionUpdate<'a>) -> bool
fn ne(&self, other: &SessionUpdate<'a>) -> bool
This method tests for !=
.
sourceimpl<'a> Serialize for SessionUpdate<'a>
impl<'a> Serialize for SessionUpdate<'a>
impl<'a> StructuralPartialEq for SessionUpdate<'a>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more