pub struct DetectionsResource {
pub confidence: Option<f32>,
pub is_reliable: Option<bool>,
pub language: Option<String>,
}Expand description
An array of languages which we detect for the given text The most likely language list first.
This type is not used in any activity, and only used as part of another schema.
The contained type is Option<Vec<DetectionsResourceDetectionsResource>>.
Fields§
§confidence: Option<f32>The confidence of the detection result of this language.
is_reliable: Option<bool>A boolean to indicate is the language detection result reliable.
language: Option<String>The language we detected.
Trait Implementations§
Source§impl Clone for DetectionsResource
impl Clone for DetectionsResource
Source§fn clone(&self) -> DetectionsResource
fn clone(&self) -> DetectionsResource
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 DetectionsResource
impl Debug for DetectionsResource
Source§impl Default for DetectionsResource
impl Default for DetectionsResource
Source§fn default() -> DetectionsResource
fn default() -> DetectionsResource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DetectionsResource
impl<'de> Deserialize<'de> for DetectionsResource
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 DetectionsResource
impl Serialize for DetectionsResource
impl Part for DetectionsResource
Auto Trait Implementations§
impl Freeze for DetectionsResource
impl RefUnwindSafe for DetectionsResource
impl Send for DetectionsResource
impl Sync for DetectionsResource
impl Unpin for DetectionsResource
impl UnwindSafe for DetectionsResource
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