Struct chlorate::SodaRecognitionResult[][src]

pub struct SodaRecognitionResult {
    pub hypothesis: Vec<String>,
    pub result_type: Option<i32>,
    pub endpoint_reason: Option<i32>,
    pub timing_metrics: Option<TimingMetrics>,
}

Next id: 5

Fields

hypothesis: Vec<String>

Hypothesis from recognition, in order of probability. We don’t get the probability from SODA, so the only given is that the first is the “best”.

result_type: Option<i32>

What kind of result set this is.

endpoint_reason: Option<i32>

If this is a final result, why was the recognition marked final.

timing_metrics: Option<TimingMetrics>

Timing information for the event.

Implementations

impl SodaRecognitionResult[src]

pub fn result_type(&self) -> ResultType[src]

Returns the enum value of result_type, or the default if the field is unset or set to an invalid enum value.

pub fn set_result_type(&mut self, value: ResultType)[src]

Sets result_type to the provided enum value.

pub fn endpoint_reason(&self) -> FinalResultEndpointReason[src]

Returns the enum value of endpoint_reason, or the default if the field is unset or set to an invalid enum value.

pub fn set_endpoint_reason(&mut self, value: FinalResultEndpointReason)[src]

Sets endpoint_reason to the provided enum value.

Trait Implementations

impl Clone for SodaRecognitionResult[src]

impl Debug for SodaRecognitionResult[src]

impl Default for SodaRecognitionResult[src]

impl Message for SodaRecognitionResult[src]

impl PartialEq<SodaRecognitionResult> for SodaRecognitionResult[src]

impl StructuralPartialEq for SodaRecognitionResult[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.