Struct chlorate::SodaLangIdEvent[][src]

pub struct SodaLangIdEvent {
    pub language: Option<String>,
    pub confidence_level: Option<i32>,


language: Option<String>

Locale, e.g. “en-us” or “af-za”

confidence_level: Option<i32>

Equal to the internal enum from langid confidence.


impl SodaLangIdEvent[src]

pub fn language(&self) -> &str[src]

Returns the value of language, or the default value if language is unset.

pub fn confidence_level(&self) -> i32[src]

Returns the value of confidence_level, or the default value if confidence_level is unset.

Trait Implementations

impl Clone for SodaLangIdEvent[src]

impl Debug for SodaLangIdEvent[src]

impl Default for SodaLangIdEvent[src]

impl Message for SodaLangIdEvent[src]

impl PartialEq<SodaLangIdEvent> for SodaLangIdEvent[src]

impl StructuralPartialEq for SodaLangIdEvent[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.