pub struct GoogleTypeLocalizedText {
pub language_code: Option<String>,
pub text: Option<String>,
}Expand description
Localized variant of a text in a particular language.
This type is not used in any activity, and only used as part of another schema.
Fields§
§language_code: Option<String>The text’s BCP-47 language code, such as “en-US” or “sr-Latn”. For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
text: Option<String>Localized string in the language corresponding to language_code below.
Trait Implementations§
Source§impl Clone for GoogleTypeLocalizedText
impl Clone for GoogleTypeLocalizedText
Source§fn clone(&self) -> GoogleTypeLocalizedText
fn clone(&self) -> GoogleTypeLocalizedText
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 GoogleTypeLocalizedText
impl Debug for GoogleTypeLocalizedText
Source§impl Default for GoogleTypeLocalizedText
impl Default for GoogleTypeLocalizedText
Source§fn default() -> GoogleTypeLocalizedText
fn default() -> GoogleTypeLocalizedText
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoogleTypeLocalizedText
impl<'de> Deserialize<'de> for GoogleTypeLocalizedText
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 GoogleTypeLocalizedText
impl Serialize for GoogleTypeLocalizedText
impl Part for GoogleTypeLocalizedText
Auto Trait Implementations§
impl Freeze for GoogleTypeLocalizedText
impl RefUnwindSafe for GoogleTypeLocalizedText
impl Send for GoogleTypeLocalizedText
impl Sync for GoogleTypeLocalizedText
impl Unpin for GoogleTypeLocalizedText
impl UnwindSafe for GoogleTypeLocalizedText
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