#[non_exhaustive]pub struct AnalyticsIntentMetricResult {
pub name: Option<AnalyticsIntentMetricName>,
pub statistic: Option<AnalyticsMetricStatistic>,
pub value: Option<f64>,
}Expand description
An object containing the results for the intent metric you requested.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: 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.
statistic: 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.
value: Option<f64>The value of the summary statistic for the metric that you requested.
Implementations§
source§impl AnalyticsIntentMetricResult
impl AnalyticsIntentMetricResult
sourcepub fn name(&self) -> Option<&AnalyticsIntentMetricName>
pub fn 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) -> Option<&AnalyticsMetricStatistic>
pub fn 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.
source§impl AnalyticsIntentMetricResult
impl AnalyticsIntentMetricResult
sourcepub fn builder() -> AnalyticsIntentMetricResultBuilder
pub fn builder() -> AnalyticsIntentMetricResultBuilder
Creates a new builder-style object to manufacture AnalyticsIntentMetricResult.
Trait Implementations§
source§impl Clone for AnalyticsIntentMetricResult
impl Clone for AnalyticsIntentMetricResult
source§fn clone(&self) -> AnalyticsIntentMetricResult
fn clone(&self) -> AnalyticsIntentMetricResult
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AnalyticsIntentMetricResult
impl Debug for AnalyticsIntentMetricResult
impl StructuralPartialEq for AnalyticsIntentMetricResult
Auto Trait Implementations§
impl Freeze for AnalyticsIntentMetricResult
impl RefUnwindSafe for AnalyticsIntentMetricResult
impl Send for AnalyticsIntentMetricResult
impl Sync for AnalyticsIntentMetricResult
impl Unpin for AnalyticsIntentMetricResult
impl UnwindSafe for AnalyticsIntentMetricResult
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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