pub struct TranslationsResource {
pub detected_source_language: Option<String>,
pub model: Option<String>,
pub translated_text: Option<String>,
}Expand description
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§
Source§impl Clone for TranslationsResource
impl Clone for TranslationsResource
Source§fn clone(&self) -> TranslationsResource
fn clone(&self) -> TranslationsResource
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 TranslationsResource
impl Debug for TranslationsResource
Source§impl Default for TranslationsResource
impl Default for TranslationsResource
Source§fn default() -> TranslationsResource
fn default() -> TranslationsResource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TranslationsResource
impl<'de> Deserialize<'de> for TranslationsResource
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 TranslationsResource
impl Serialize for TranslationsResource
impl Part for TranslationsResource
Auto Trait Implementations§
impl Freeze for TranslationsResource
impl RefUnwindSafe for TranslationsResource
impl Send for TranslationsResource
impl Sync for TranslationsResource
impl Unpin for TranslationsResource
impl UnwindSafe for TranslationsResource
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