pub struct UserActivitySession {
pub activities: Option<Vec<Activity>>,
pub data_source: Option<String>,
pub device_category: Option<String>,
pub platform: Option<String>,
pub session_date: Option<String>,
pub session_id: Option<String>,
}
Expand description
This represents a user session performed on a specific device at a certain time over a period of time.
This type is not used in any activity, and only used as part of another schema.
Fields§
§activities: Option<Vec<Activity>>
Represents a detailed view into each of the activity in this session.
data_source: Option<String>
The data source of a hit. By default, hits sent from analytics.js are reported as “web” and hits sent from the mobile SDKs are reported as “app”. These values can be overridden in the Measurement Protocol.
device_category: Option<String>
The type of device used: “mobile”, “tablet” etc.
platform: Option<String>
Platform on which the activity happened: “android”, “ios” etc.
session_date: Option<String>
Date of this session in ISO-8601 format.
session_id: Option<String>
Unique ID of the session.
Trait Implementations§
Source§impl Clone for UserActivitySession
impl Clone for UserActivitySession
Source§fn clone(&self) -> UserActivitySession
fn clone(&self) -> UserActivitySession
Returns a duplicate 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 UserActivitySession
impl Debug for UserActivitySession
Source§impl Default for UserActivitySession
impl Default for UserActivitySession
Source§fn default() -> UserActivitySession
fn default() -> UserActivitySession
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserActivitySession
impl<'de> Deserialize<'de> for UserActivitySession
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 Serialize for UserActivitySession
impl Serialize for UserActivitySession
impl Part for UserActivitySession
Auto Trait Implementations§
impl Freeze for UserActivitySession
impl RefUnwindSafe for UserActivitySession
impl Send for UserActivitySession
impl Sync for UserActivitySession
impl Unpin for UserActivitySession
impl UnwindSafe for UserActivitySession
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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