pub struct DetectedLanguage {
pub confidence: Option<f32>,
pub language_code: Option<String>,
}Expand description
The response message for language detection.
This type is not used in any activity, and only used as part of another schema.
Fields§
§confidence: Option<f32>The confidence of the detection result for this language.
language_code: Option<String>The ISO-639 language code of the source content in the request, detected automatically.
Trait Implementations§
Source§impl Clone for DetectedLanguage
impl Clone for DetectedLanguage
Source§fn clone(&self) -> DetectedLanguage
fn clone(&self) -> DetectedLanguage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DetectedLanguage
impl Debug for DetectedLanguage
Source§impl Default for DetectedLanguage
impl Default for DetectedLanguage
Source§fn default() -> DetectedLanguage
fn default() -> DetectedLanguage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DetectedLanguage
impl<'de> Deserialize<'de> for DetectedLanguage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for DetectedLanguage
impl Serialize for DetectedLanguage
impl Part for DetectedLanguage
Auto Trait Implementations§
impl Freeze for DetectedLanguage
impl RefUnwindSafe for DetectedLanguage
impl Send for DetectedLanguage
impl Sync for DetectedLanguage
impl Unpin for DetectedLanguage
impl UnwindSafe for DetectedLanguage
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
Mutably borrows from an owned value. Read more