Struct SessionUpdate
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§
§impl<'a> Clone for SessionUpdate<'a>
impl<'a> Clone for SessionUpdate<'a>
§fn clone(&self) -> SessionUpdate<'a>
fn clone(&self) -> SessionUpdate<'a>
Returns a copy 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 more§impl<'a> Debug for SessionUpdate<'a>
impl<'a> Debug for SessionUpdate<'a>
§impl<'de, 'a> Deserialize<'de> for SessionUpdate<'a>
impl<'de, 'a> Deserialize<'de> for SessionUpdate<'a>
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SessionUpdate<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
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
§impl From<SessionUpdate<'static>> for EnvelopeItem
impl From<SessionUpdate<'static>> for EnvelopeItem
§fn from(session: SessionUpdate<'static>) -> EnvelopeItem
fn from(session: SessionUpdate<'static>) -> EnvelopeItem
Converts to this type from the input type.
§impl<'a> PartialEq for SessionUpdate<'a>
impl<'a> PartialEq for SessionUpdate<'a>
§impl<'a> Serialize for SessionUpdate<'a>
impl<'a> Serialize for SessionUpdate<'a>
§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<'a> StructuralPartialEq for SessionUpdate<'a>
Auto Trait Implementations§
impl<'a> Freeze for SessionUpdate<'a>
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§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)