pub struct DetectLanguageResponse {
pub languages: Option<Vec<DetectedLanguage>>,
}Expand description
The response message for language detection.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations detect language projects (response)
- detect language projects (response)
Fields§
§languages: Option<Vec<DetectedLanguage>>The most probable language detected by the Translation API. For each request, the Translation API will always return only one result.
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<'de> Deserialize<'de> for DetectLanguageResponse
impl<'de> Deserialize<'de> for DetectLanguageResponse
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 DetectLanguageResponse
impl Serialize for DetectLanguageResponse
impl ResponseResult 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 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