#[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<AnalyticsSessionMetricResultBuilder> for AnalyticsSessionMetricResultBuilder
impl PartialEq<AnalyticsSessionMetricResultBuilder> 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 ==.