#[non_exhaustive]pub struct DetectLanguageResponse {
pub languages: Vec<DetectedLanguage>,
/* private fields */
}Expand description
The response message for language detection.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.languages: Vec<DetectedLanguage>The most probable language detected by the Translation API. For each request, the Translation API will always return only one result.
Implementations§
Source§impl DetectLanguageResponse
impl DetectLanguageResponse
pub fn new() -> Self
Sourcepub fn set_languages<T, V>(self, v: T) -> Self
pub fn set_languages<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for DetectLanguageResponse
impl Clone for DetectLanguageResponse
Source§fn clone(&self) -> DetectLanguageResponse
fn clone(&self) -> DetectLanguageResponse
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 DetectLanguageResponse
impl Debug for DetectLanguageResponse
Source§impl Default for DetectLanguageResponse
impl Default for DetectLanguageResponse
Source§fn default() -> DetectLanguageResponse
fn default() -> DetectLanguageResponse
Returns the “default value” for a type. Read more
Source§impl Message for DetectLanguageResponse
impl Message for DetectLanguageResponse
Source§impl PartialEq for DetectLanguageResponse
impl PartialEq for DetectLanguageResponse
impl StructuralPartialEq for DetectLanguageResponse
Auto Trait Implementations§
impl Freeze for DetectLanguageResponse
impl RefUnwindSafe for DetectLanguageResponse
impl Send for DetectLanguageResponse
impl Sync for DetectLanguageResponse
impl Unpin for DetectLanguageResponse
impl UnsafeUnpin for DetectLanguageResponse
impl UnwindSafe for DetectLanguageResponse
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