Struct google_translate2::TranslationsResource
[−]
[src]
pub struct TranslationsResource { pub translated_text: Option<String>, pub model: Option<String>, pub detected_source_language: Option<String>, }
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
Fields
translated_text: Option<String>
Text translated into the target language.
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.
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.
Trait Implementations
impl Default for TranslationsResource
[src]
fn default() -> TranslationsResource
[src]
Returns the "default value" for a type. Read more
impl Clone for TranslationsResource
[src]
fn clone(&self) -> TranslationsResource
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more