pub struct SupportedLanguage {
pub display_name: Option<String>,
pub language_code: Option<String>,
pub support_source: Option<bool>,
pub support_target: Option<bool>,
}Expand description
A single supported language response corresponds to information related to one supported language.
This type is not used in any activity, and only used as part of another schema.
Fields§
§display_name: Option<String>Human-readable name of the language localized in the display language specified in the request.
language_code: Option<String>Supported language code, generally consisting of its ISO 639-1 identifier, for example, ‘en’, ‘ja’. In certain cases, ISO-639 codes including language and region identifiers are returned (for example, ‘zh-TW’ and ‘zh-CN’).
support_source: Option<bool>Can be used as a source language.
support_target: Option<bool>Can be used as a target language.
Trait Implementations§
Source§impl Clone for SupportedLanguage
impl Clone for SupportedLanguage
Source§fn clone(&self) -> SupportedLanguage
fn clone(&self) -> SupportedLanguage
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 SupportedLanguage
impl Debug for SupportedLanguage
Source§impl Default for SupportedLanguage
impl Default for SupportedLanguage
Source§fn default() -> SupportedLanguage
fn default() -> SupportedLanguage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SupportedLanguage
impl<'de> Deserialize<'de> for SupportedLanguage
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 SupportedLanguage
impl Serialize for SupportedLanguage
impl Part for SupportedLanguage
Auto Trait Implementations§
impl Freeze for SupportedLanguage
impl RefUnwindSafe for SupportedLanguage
impl Send for SupportedLanguage
impl Sync for SupportedLanguage
impl Unpin for SupportedLanguage
impl UnwindSafe for SupportedLanguage
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