pub struct LocalizedText {
pub language: Option<String>,
pub text: String,
}Expand description
A language-tagged alias preserved from the source catalog.
Fields§
§language: Option<String>IETF-style language tag as declared by the publication, absent when unspecified.
text: StringThe alias text itself.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for LocalizedText
impl<'__de, __Context> BorrowDecode<'__de, __Context> for LocalizedText
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
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 (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 LocalizedText
impl Debug for LocalizedText
Source§impl<__Context> Decode<__Context> for LocalizedText
impl<__Context> Decode<__Context> for LocalizedText
Source§impl Encode for LocalizedText
impl Encode for LocalizedText
impl Eq for LocalizedText
Source§impl PartialEq for LocalizedText
impl PartialEq for LocalizedText
impl StructuralPartialEq 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 UnsafeUnpin 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