#[non_exhaustive]pub struct AnalyticsSessionMetricBuilder { /* private fields */ }Expand description
A builder for AnalyticsSessionMetric.
Implementations§
source§impl AnalyticsSessionMetricBuilder
impl AnalyticsSessionMetricBuilder
sourcepub fn name(self, input: AnalyticsSessionMetricName) -> Self
pub fn name(self, input: AnalyticsSessionMetricName) -> Self
The metric for which you want to get session summary statistics.
-
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. -
TurnsPerSession– 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 for which you want to get session summary statistics.
-
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. -
TurnsPerSession– 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 for which you want to get session summary statistics.
-
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. -
TurnsPerSession– 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 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 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 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 order(self, input: AnalyticsSortOrder) -> Self
pub fn order(self, input: AnalyticsSortOrder) -> Self
Specifies whether to sort the results in ascending or descending order.
sourcepub fn set_order(self, input: Option<AnalyticsSortOrder>) -> Self
pub fn set_order(self, input: Option<AnalyticsSortOrder>) -> Self
Specifies whether to sort the results in ascending or descending order.
sourcepub fn get_order(&self) -> &Option<AnalyticsSortOrder>
pub fn get_order(&self) -> &Option<AnalyticsSortOrder>
Specifies whether to sort the results in ascending or descending order.
sourcepub fn build(self) -> Result<AnalyticsSessionMetric, BuildError>
pub fn build(self) -> Result<AnalyticsSessionMetric, BuildError>
Consumes the builder and constructs a AnalyticsSessionMetric.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AnalyticsSessionMetricBuilder
impl Clone for AnalyticsSessionMetricBuilder
source§fn clone(&self) -> AnalyticsSessionMetricBuilder
fn clone(&self) -> AnalyticsSessionMetricBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AnalyticsSessionMetricBuilder
impl Default for AnalyticsSessionMetricBuilder
source§fn default() -> AnalyticsSessionMetricBuilder
fn default() -> AnalyticsSessionMetricBuilder
source§impl PartialEq for AnalyticsSessionMetricBuilder
impl PartialEq for AnalyticsSessionMetricBuilder
source§fn eq(&self, other: &AnalyticsSessionMetricBuilder) -> bool
fn eq(&self, other: &AnalyticsSessionMetricBuilder) -> bool
self and other values to be equal, and is used
by ==.