#[non_exhaustive]pub struct AnalyticsIntentMetricBuilder { /* private fields */ }Expand description
A builder for AnalyticsIntentMetric.
Implementations§
source§impl AnalyticsIntentMetricBuilder
impl AnalyticsIntentMetricBuilder
sourcepub fn name(self, input: AnalyticsIntentMetricName) -> Self
pub fn name(self, input: AnalyticsIntentMetricName) -> Self
The metric for which you want to get intent summary statistics.
-
Count– The number of times the intent was invoked. -
Success– The number of times the intent succeeded. -
Failure– The number of times the intent failed. -
Switched– The number of times there was a switch to a different intent. -
Dropped– The number of times the user dropped the intent.
sourcepub fn set_name(self, input: Option<AnalyticsIntentMetricName>) -> Self
pub fn set_name(self, input: Option<AnalyticsIntentMetricName>) -> Self
The metric for which you want to get intent summary statistics.
-
Count– The number of times the intent was invoked. -
Success– The number of times the intent succeeded. -
Failure– The number of times the intent failed. -
Switched– The number of times there was a switch to a different intent. -
Dropped– The number of times the user dropped the intent.
sourcepub fn get_name(&self) -> &Option<AnalyticsIntentMetricName>
pub fn get_name(&self) -> &Option<AnalyticsIntentMetricName>
The metric for which you want to get intent summary statistics.
-
Count– The number of times the intent was invoked. -
Success– The number of times the intent succeeded. -
Failure– The number of times the intent failed. -
Switched– The number of times there was a switch to a different intent. -
Dropped– The number of times the user dropped the intent.
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 intents 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 intents 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 intents 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<AnalyticsIntentMetric, BuildError>
pub fn build(self) -> Result<AnalyticsIntentMetric, BuildError>
Consumes the builder and constructs a AnalyticsIntentMetric.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AnalyticsIntentMetricBuilder
impl Clone for AnalyticsIntentMetricBuilder
source§fn clone(&self) -> AnalyticsIntentMetricBuilder
fn clone(&self) -> AnalyticsIntentMetricBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AnalyticsIntentMetricBuilder
impl Debug for AnalyticsIntentMetricBuilder
source§impl Default for AnalyticsIntentMetricBuilder
impl Default for AnalyticsIntentMetricBuilder
source§fn default() -> AnalyticsIntentMetricBuilder
fn default() -> AnalyticsIntentMetricBuilder
source§impl PartialEq for AnalyticsIntentMetricBuilder
impl PartialEq for AnalyticsIntentMetricBuilder
source§fn eq(&self, other: &AnalyticsIntentMetricBuilder) -> bool
fn eq(&self, other: &AnalyticsIntentMetricBuilder) -> bool
self and other values to be equal, and is used
by ==.