pub struct TranslationLanguage {
pub language_code: String,
pub language_name: Option<LocalizedText>,
}Expand description
A target language for machine translation.
Fields§
§language_code: StringIETF language tag of the translation target.
language_name: Option<LocalizedText>Display name of the translation target.
Trait Implementations§
Source§impl Clone for TranslationLanguage
impl Clone for TranslationLanguage
Source§fn clone(&self) -> TranslationLanguage
fn clone(&self) -> TranslationLanguage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TranslationLanguage
impl Debug for TranslationLanguage
Source§impl<'de> Deserialize<'de> for TranslationLanguage
impl<'de> Deserialize<'de> for TranslationLanguage
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
Auto Trait Implementations§
impl Freeze for TranslationLanguage
impl RefUnwindSafe for TranslationLanguage
impl Send for TranslationLanguage
impl Sync for TranslationLanguage
impl Unpin for TranslationLanguage
impl UnsafeUnpin for TranslationLanguage
impl UnwindSafe for TranslationLanguage
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