Struct relay_event_schema::protocol::SessionUpdate
source · pub struct SessionUpdate {
pub session_id: Uuid,
pub distinct_id: Option<String>,
pub sequence: u64,
pub init: bool,
pub timestamp: DateTime<Utc>,
pub started: DateTime<Utc>,
pub duration: Option<f64>,
pub status: SessionStatus,
pub errors: u64,
pub attributes: SessionAttributes,
pub abnormal_mechanism: AbnormalMechanism,
}
Fields§
§session_id: Uuid
The session identifier.
distinct_id: Option<String>
The distinct identifier.
sequence: u64
An optional logical clock.
init: bool
A flag that indicates that this is the initial transmission of the session.
timestamp: DateTime<Utc>
The timestamp of when the session change event was created.
started: DateTime<Utc>
The timestamp of when the session itself started.
duration: Option<f64>
An optional duration of the session in seconds.
status: SessionStatus
The status of the session.
errors: u64
The number of errors that ocurred.
attributes: SessionAttributes
The session event attributes.
abnormal_mechanism: AbnormalMechanism
The abnormal mechanism.
Implementations§
Trait Implementations§
source§impl Clone for SessionUpdate
impl Clone for SessionUpdate
source§fn clone(&self) -> SessionUpdate
fn clone(&self) -> SessionUpdate
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 moresource§impl Debug for SessionUpdate
impl Debug for SessionUpdate
source§impl<'de> Deserialize<'de> for SessionUpdate
impl<'de> Deserialize<'de> for SessionUpdate
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 SessionUpdate
impl PartialEq for SessionUpdate
source§impl Serialize for SessionUpdate
impl Serialize for SessionUpdate
source§impl SessionLike for SessionUpdate
impl SessionLike for SessionUpdate
fn started(&self) -> DateTime<Utc>
fn distinct_id(&self) -> Option<&String>
fn total_count(&self) -> u32
fn abnormal_count(&self) -> u32
fn crashed_count(&self) -> u32
fn all_errors(&self) -> Option<SessionErrored>
fn abnormal_mechanism(&self) -> AbnormalMechanism
impl StructuralPartialEq for SessionUpdate
Auto Trait Implementations§
impl Freeze for SessionUpdate
impl RefUnwindSafe for SessionUpdate
impl Send for SessionUpdate
impl Sync for SessionUpdate
impl Unpin for SessionUpdate
impl UnwindSafe for SessionUpdate
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
)