#[non_exhaustive]pub struct AnalyticsSessionMetricResult {
pub name: Option<AnalyticsSessionMetricName>,
pub statistic: Option<AnalyticsMetricStatistic>,
pub value: Option<f64>,
}Expand description
An object containing the results for a session metric you requested.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Option<AnalyticsSessionMetricName>The metric that you requested.
-
Count– The number of sessions. -
Success– The number of sessions that succeeded. -
Failure– The number of sessions that failed. -
Dropped– The number of sessions that the user dropped. -
Duration– The duration of sessions. -
TurnPersession– The number of turns in the sessions. -
Concurrency– The number of sessions occurring in the same period of time.
statistic: Option<AnalyticsMetricStatistic>The summary statistic that you requested to calculate.
-
Sum– The total count for the category you provide inname. -
Average– The total count divided by the number of sessions in the category you provide inname. -
Max– The highest count in the category you provide inname.
value: Option<f64>The value of the summary statistic for the metric that you requested.
Implementations§
source§impl AnalyticsSessionMetricResult
impl AnalyticsSessionMetricResult
sourcepub fn name(&self) -> Option<&AnalyticsSessionMetricName>
pub fn name(&self) -> Option<&AnalyticsSessionMetricName>
The metric that you requested.
-
Count– The number of sessions. -
Success– The number of sessions that succeeded. -
Failure– The number of sessions that failed. -
Dropped– The number of sessions that the user dropped. -
Duration– The duration of sessions. -
TurnPersession– The number of turns in the sessions. -
Concurrency– The number of sessions occurring in the same period of time.
sourcepub fn statistic(&self) -> Option<&AnalyticsMetricStatistic>
pub fn statistic(&self) -> Option<&AnalyticsMetricStatistic>
The summary statistic that you requested to calculate.
-
Sum– The total count for the category you provide inname. -
Average– The total count divided by the number of sessions in the category you provide inname. -
Max– The highest count in the category you provide inname.
source§impl AnalyticsSessionMetricResult
impl AnalyticsSessionMetricResult
sourcepub fn builder() -> AnalyticsSessionMetricResultBuilder
pub fn builder() -> AnalyticsSessionMetricResultBuilder
Creates a new builder-style object to manufacture AnalyticsSessionMetricResult.
Trait Implementations§
source§impl Clone for AnalyticsSessionMetricResult
impl Clone for AnalyticsSessionMetricResult
source§fn clone(&self) -> AnalyticsSessionMetricResult
fn clone(&self) -> AnalyticsSessionMetricResult
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AnalyticsSessionMetricResult
impl Debug for AnalyticsSessionMetricResult
source§impl PartialEq for AnalyticsSessionMetricResult
impl PartialEq for AnalyticsSessionMetricResult
source§fn eq(&self, other: &AnalyticsSessionMetricResult) -> bool
fn eq(&self, other: &AnalyticsSessionMetricResult) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AnalyticsSessionMetricResult
Auto Trait Implementations§
impl Freeze for AnalyticsSessionMetricResult
impl RefUnwindSafe for AnalyticsSessionMetricResult
impl Send for AnalyticsSessionMetricResult
impl Sync for AnalyticsSessionMetricResult
impl Unpin for AnalyticsSessionMetricResult
impl UnwindSafe for AnalyticsSessionMetricResult
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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>
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>
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