pub struct LocalizedText {
pub language: Option<String>,
pub text: Option<String>,
}Expand description
Localized text in given language.
This type is not used in any activity, and only used as part of another schema.
Fields§
§language: Option<String>Language localization code (a BCP-47 language tag; for example, “de-AT” for Austrian German).
text: Option<String>The text in the given language.
Trait Implementations§
Source§impl Clone for LocalizedText
impl Clone for LocalizedText
Source§fn clone(&self) -> LocalizedText
fn clone(&self) -> LocalizedText
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 LocalizedText
impl Debug for LocalizedText
Source§impl Default for LocalizedText
impl Default for LocalizedText
Source§fn default() -> LocalizedText
fn default() -> LocalizedText
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LocalizedText
impl<'de> Deserialize<'de> for LocalizedText
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 LocalizedText
impl Serialize for LocalizedText
impl Part for LocalizedText
Auto Trait Implementations§
impl Freeze for LocalizedText
impl RefUnwindSafe for LocalizedText
impl Send for LocalizedText
impl Sync for LocalizedText
impl Unpin for LocalizedText
impl UnwindSafe for LocalizedText
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