Struct chlorate::SodaRecognitionResult [−][src]
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]
fn clone(&self) -> SodaRecognitionResult
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SodaRecognitionResult
[src]
impl Default for SodaRecognitionResult
[src]
impl Message for SodaRecognitionResult
[src]
fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
[src]
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
fn encoded_len(&self) -> usize
[src]
fn clear(&mut self)
[src]
pub fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn decode<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
pub fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
impl PartialEq<SodaRecognitionResult> for SodaRecognitionResult
[src]
fn eq(&self, other: &SodaRecognitionResult) -> bool
[src]
fn ne(&self, other: &SodaRecognitionResult) -> bool
[src]
impl StructuralPartialEq for SodaRecognitionResult
[src]
Auto Trait Implementations
impl RefUnwindSafe for SodaRecognitionResult
impl Send for SodaRecognitionResult
impl Sync for SodaRecognitionResult
impl Unpin for SodaRecognitionResult
impl UnwindSafe for SodaRecognitionResult
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,