pub struct LanguageString {
pub text: String,
pub language: Option<LanguageTag>,
}Expand description
String with optional language attribute
Fields§
§text: String§language: Option<LanguageTag>Trait Implementations§
Source§impl Clone for LanguageString
impl Clone for LanguageString
Source§fn clone(&self) -> LanguageString
fn clone(&self) -> LanguageString
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 LanguageString
impl Debug for LanguageString
Source§impl Default for LanguageString
impl Default for LanguageString
Source§fn default() -> LanguageString
fn default() -> LanguageString
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LanguageString
impl<'de> Deserialize<'de> for LanguageString
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 Display for LanguageString
impl Display for LanguageString
Source§impl PartialEq for LanguageString
impl PartialEq for LanguageString
Source§fn eq(&self, other: &LanguageString) -> bool
fn eq(&self, other: &LanguageString) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LanguageString
impl Serialize for LanguageString
impl StructuralPartialEq for LanguageString
Auto Trait Implementations§
impl Freeze for LanguageString
impl RefUnwindSafe for LanguageString
impl Send for LanguageString
impl Sync for LanguageString
impl Unpin for LanguageString
impl UnsafeUnpin for LanguageString
impl UnwindSafe for LanguageString
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