Struct google_translate2::TranslationsResource [−][src]
pub struct TranslationsResource { pub detected_source_language: Option<String>, pub model: Option<String>, pub translated_text: Option<String>, }
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
Fields
detected_source_language: Option<String>
The source language of the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language will not occur and this field will be empty.
model: Option<String>
The model
type used for this translation. Valid values are
listed in public documentation. Can be different from requested model
.
Present only if specific model type was explicitly requested.
translated_text: Option<String>
Text translated into the target language.
Trait Implementations
impl Default for TranslationsResource
[src]
impl Default for TranslationsResource
fn default() -> TranslationsResource
[src]
fn default() -> TranslationsResource
Returns the "default value" for a type. Read more
impl Clone for TranslationsResource
[src]
impl Clone for TranslationsResource
fn clone(&self) -> TranslationsResource
[src]
fn clone(&self) -> TranslationsResource
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for TranslationsResource
[src]
impl Debug for TranslationsResource
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for TranslationsResource
[src]
impl Part for TranslationsResource
Auto Trait Implementations
impl Send for TranslationsResource
impl Send for TranslationsResource
impl Sync for TranslationsResource
impl Sync for TranslationsResource