pub struct ViewerSession {
pub session_id: String,
pub user_id: Option<String>,
pub content_id: String,
pub started_at_ms: i64,
pub events: Vec<PlaybackEvent>,
}Expand description
A single viewing session for one piece of content.
Fields§
§session_id: String§user_id: Option<String>§content_id: String§started_at_ms: i64Wall-clock start time of the session (Unix epoch ms).
events: Vec<PlaybackEvent>Implementations§
Source§impl ViewerSession
impl ViewerSession
Trait Implementations§
Source§impl Clone for ViewerSession
impl Clone for ViewerSession
Source§fn clone(&self) -> ViewerSession
fn clone(&self) -> ViewerSession
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ViewerSession
impl RefUnwindSafe for ViewerSession
impl Send for ViewerSession
impl Sync for ViewerSession
impl Unpin for ViewerSession
impl UnsafeUnpin for ViewerSession
impl UnwindSafe for ViewerSession
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more