#[non_exhaustive]pub struct AnalyticsIntentMetricResultBuilder { /* private fields */ }Expand description
A builder for AnalyticsIntentMetricResult.
Implementations§
source§impl AnalyticsIntentMetricResultBuilder
impl AnalyticsIntentMetricResultBuilder
sourcepub fn name(self, input: AnalyticsIntentMetricName) -> Self
pub fn name(self, input: AnalyticsIntentMetricName) -> Self
The metric that you requested. See Key definitions for more details about these metrics.
-
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 that you requested. See Key definitions for more details about these metrics.
-
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 that you requested. See Key definitions for more details about these metrics.
-
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 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 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 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 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 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 intents 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) -> AnalyticsIntentMetricResult
pub fn build(self) -> AnalyticsIntentMetricResult
Consumes the builder and constructs a AnalyticsIntentMetricResult.
Trait Implementations§
source§impl Clone for AnalyticsIntentMetricResultBuilder
impl Clone for AnalyticsIntentMetricResultBuilder
source§fn clone(&self) -> AnalyticsIntentMetricResultBuilder
fn clone(&self) -> AnalyticsIntentMetricResultBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AnalyticsIntentMetricResultBuilder
impl Default for AnalyticsIntentMetricResultBuilder
source§fn default() -> AnalyticsIntentMetricResultBuilder
fn default() -> AnalyticsIntentMetricResultBuilder
source§impl PartialEq for AnalyticsIntentMetricResultBuilder
impl PartialEq for AnalyticsIntentMetricResultBuilder
source§fn eq(&self, other: &AnalyticsIntentMetricResultBuilder) -> bool
fn eq(&self, other: &AnalyticsIntentMetricResultBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AnalyticsIntentMetricResultBuilder
Auto Trait Implementations§
impl Freeze for AnalyticsIntentMetricResultBuilder
impl RefUnwindSafe for AnalyticsIntentMetricResultBuilder
impl Send for AnalyticsIntentMetricResultBuilder
impl Sync for AnalyticsIntentMetricResultBuilder
impl Unpin for AnalyticsIntentMetricResultBuilder
impl UnwindSafe for AnalyticsIntentMetricResultBuilder
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> 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