#[non_exhaustive]pub struct AnalyticsSessionMetricResultBuilder { /* private fields */ }Expand description
A builder for AnalyticsSessionMetricResult.
Implementations§
source§impl AnalyticsSessionMetricResultBuilder
impl AnalyticsSessionMetricResultBuilder
sourcepub fn name(self, input: AnalyticsSessionMetricName) -> Self
pub fn name(self, input: AnalyticsSessionMetricName) -> Self
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 set_name(self, input: Option<AnalyticsSessionMetricName>) -> Self
pub fn set_name(self, input: Option<AnalyticsSessionMetricName>) -> Self
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 get_name(&self) -> &Option<AnalyticsSessionMetricName>
pub fn get_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, input: AnalyticsMetricStatistic) -> Self
pub fn statistic(self, input: AnalyticsMetricStatistic) -> Self
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.
sourcepub fn set_statistic(self, input: Option<AnalyticsMetricStatistic>) -> Self
pub fn set_statistic(self, input: Option<AnalyticsMetricStatistic>) -> Self
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.
sourcepub fn get_statistic(&self) -> &Option<AnalyticsMetricStatistic>
pub fn get_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.
sourcepub fn value(self, input: f64) -> Self
pub fn value(self, input: f64) -> Self
The value of the summary statistic for the metric that you requested.
sourcepub fn set_value(self, input: Option<f64>) -> Self
pub fn set_value(self, input: Option<f64>) -> Self
The value of the summary statistic for the metric that you requested.
sourcepub fn get_value(&self) -> &Option<f64>
pub fn get_value(&self) -> &Option<f64>
The value of the summary statistic for the metric that you requested.
sourcepub fn build(self) -> AnalyticsSessionMetricResult
pub fn build(self) -> AnalyticsSessionMetricResult
Consumes the builder and constructs a AnalyticsSessionMetricResult.
Trait Implementations§
source§impl Clone for AnalyticsSessionMetricResultBuilder
impl Clone for AnalyticsSessionMetricResultBuilder
source§fn clone(&self) -> AnalyticsSessionMetricResultBuilder
fn clone(&self) -> AnalyticsSessionMetricResultBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AnalyticsSessionMetricResultBuilder
impl Default for AnalyticsSessionMetricResultBuilder
source§fn default() -> AnalyticsSessionMetricResultBuilder
fn default() -> AnalyticsSessionMetricResultBuilder
source§impl PartialEq for AnalyticsSessionMetricResultBuilder
impl PartialEq for AnalyticsSessionMetricResultBuilder
source§fn eq(&self, other: &AnalyticsSessionMetricResultBuilder) -> bool
fn eq(&self, other: &AnalyticsSessionMetricResultBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AnalyticsSessionMetricResultBuilder
Auto Trait Implementations§
impl Freeze for AnalyticsSessionMetricResultBuilder
impl RefUnwindSafe for AnalyticsSessionMetricResultBuilder
impl Send for AnalyticsSessionMetricResultBuilder
impl Sync for AnalyticsSessionMetricResultBuilder
impl Unpin for AnalyticsSessionMetricResultBuilder
impl UnwindSafe for AnalyticsSessionMetricResultBuilder
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