#[non_exhaustive]pub struct AnalyticsUtteranceMetricBuilder { /* private fields */ }Expand description
A builder for AnalyticsUtteranceMetric.
Implementations§
source§impl AnalyticsUtteranceMetricBuilder
impl AnalyticsUtteranceMetricBuilder
sourcepub fn name(self, input: AnalyticsUtteranceMetricName) -> Self
pub fn name(self, input: AnalyticsUtteranceMetricName) -> Self
The metric for which you want to get utterance summary statistics.
-
Count– The number of utterances. -
Missed– The number of utterances that Amazon Lex failed to recognize. -
Detected– The number of utterances that Amazon Lex managed to detect. -
UtteranceTimestamp– The date and time of the utterance.
sourcepub fn set_name(self, input: Option<AnalyticsUtteranceMetricName>) -> Self
pub fn set_name(self, input: Option<AnalyticsUtteranceMetricName>) -> Self
The metric for which you want to get utterance summary statistics.
-
Count– The number of utterances. -
Missed– The number of utterances that Amazon Lex failed to recognize. -
Detected– The number of utterances that Amazon Lex managed to detect. -
UtteranceTimestamp– The date and time of the utterance.
sourcepub fn get_name(&self) -> &Option<AnalyticsUtteranceMetricName>
pub fn get_name(&self) -> &Option<AnalyticsUtteranceMetricName>
The metric for which you want to get utterance summary statistics.
-
Count– The number of utterances. -
Missed– The number of utterances that Amazon Lex failed to recognize. -
Detected– The number of utterances that Amazon Lex managed to detect. -
UtteranceTimestamp– The date and time of the utterance.
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 utterances 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 utterances 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 utterances 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<AnalyticsUtteranceMetric, BuildError>
pub fn build(self) -> Result<AnalyticsUtteranceMetric, BuildError>
Consumes the builder and constructs a AnalyticsUtteranceMetric.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AnalyticsUtteranceMetricBuilder
impl Clone for AnalyticsUtteranceMetricBuilder
source§fn clone(&self) -> AnalyticsUtteranceMetricBuilder
fn clone(&self) -> AnalyticsUtteranceMetricBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AnalyticsUtteranceMetricBuilder
impl Default for AnalyticsUtteranceMetricBuilder
source§fn default() -> AnalyticsUtteranceMetricBuilder
fn default() -> AnalyticsUtteranceMetricBuilder
source§impl PartialEq for AnalyticsUtteranceMetricBuilder
impl PartialEq for AnalyticsUtteranceMetricBuilder
source§fn eq(&self, other: &AnalyticsUtteranceMetricBuilder) -> bool
fn eq(&self, other: &AnalyticsUtteranceMetricBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AnalyticsUtteranceMetricBuilder
Auto Trait Implementations§
impl Freeze for AnalyticsUtteranceMetricBuilder
impl RefUnwindSafe for AnalyticsUtteranceMetricBuilder
impl Send for AnalyticsUtteranceMetricBuilder
impl Sync for AnalyticsUtteranceMetricBuilder
impl Unpin for AnalyticsUtteranceMetricBuilder
impl UnwindSafe for AnalyticsUtteranceMetricBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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