#[non_exhaustive]pub struct TextValue {
pub lang: Option<Lang>,
pub value: String,
}
Expand description
An element representing a text value that may be in a specific language.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.lang: Option<Lang>
The locale identifier for the value of the text.
value: String
The text value.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for TextValue
impl<'de> Deserialize<'de> for TextValue
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 PartialEq<TextValue> for TextValue
impl PartialEq<TextValue> for TextValue
source§impl YaDeserialize for TextValue
impl YaDeserialize for TextValue
fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>
source§impl YaSerialize for TextValue
impl YaSerialize for TextValue
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
fn serialize_attributes( &self, source_attributes: Vec<OwnedAttribute>, source_namespace: Namespace ) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl Eq for TextValue
impl StructuralEq for TextValue
impl StructuralPartialEq for TextValue
Auto Trait Implementations§
impl RefUnwindSafe for TextValue
impl Send for TextValue
impl Sync for TextValue
impl Unpin for TextValue
impl UnwindSafe for TextValue
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