pub struct CohortActivity {
pub cohort_start: Option<DateTime<Utc>>,
pub activity_period: Option<DateTime<Utc>>,
pub offset: Option<i32>,
pub active_users: i64,
}
Expand description
Represents cohort activity metrics for both weekly and daily cohorts.
For daily cohorts, offset
will be populated (and activity_period
may be computed from it);
for weekly cohorts, offset
will be None
and activity_period
indicates the week start.
Fields§
§cohort_start: Option<DateTime<Utc>>
The start date of the cohort (either day or week).
activity_period: Option<DateTime<Utc>>
The activity period (for example, the start of the week or the computed activity day).
offset: Option<i32>
The day offset from the cohort start (only applicable for daily cohorts).
active_users: i64
The number of active users in this cohort for the given period.
Trait Implementations§
Source§impl Clone for CohortActivity
impl Clone for CohortActivity
Source§fn clone(&self) -> CohortActivity
fn clone(&self) -> CohortActivity
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 CohortActivity
impl Debug for CohortActivity
Source§impl<'de> Deserialize<'de> for CohortActivity
impl<'de> Deserialize<'de> for CohortActivity
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 CohortActivity
impl PartialEq for CohortActivity
Source§impl Serialize for CohortActivity
impl Serialize for CohortActivity
impl StructuralPartialEq for CohortActivity
Auto Trait Implementations§
impl Freeze for CohortActivity
impl RefUnwindSafe for CohortActivity
impl Send for CohortActivity
impl Sync for CohortActivity
impl Unpin for CohortActivity
impl UnwindSafe for CohortActivity
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