pub struct LangAttributes {
pub lang: String,
pub on_lang_failure: Option<OnLanguageFailure>,
}
Expand description
The lang element is used to specify the natural language of the content. This element MAY be used when there is a change in the natural language.
Fields§
§lang: String
Lang is a REQUIRED attribute specifying the language of the root document.
on_lang_failure: Option<OnLanguageFailure>
On Language Failure is an OPTIONAL attribute specifying the desired behavior upon language speaking failure.
Trait Implementations§
Source§impl Clone for LangAttributes
impl Clone for LangAttributes
Source§fn clone(&self) -> LangAttributes
fn clone(&self) -> LangAttributes
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 LangAttributes
impl Debug for LangAttributes
Source§impl Default for LangAttributes
impl Default for LangAttributes
Source§fn default() -> LangAttributes
fn default() -> LangAttributes
Returns the “default value” for a type. Read more
Source§impl Display for LangAttributes
impl Display for LangAttributes
Source§impl Hash for LangAttributes
impl Hash for LangAttributes
Source§impl Ord for LangAttributes
impl Ord for LangAttributes
Source§fn cmp(&self, other: &LangAttributes) -> Ordering
fn cmp(&self, other: &LangAttributes) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LangAttributes
impl PartialEq for LangAttributes
Source§impl PartialOrd for LangAttributes
impl PartialOrd for LangAttributes
impl Eq for LangAttributes
impl StructuralPartialEq for LangAttributes
Auto Trait Implementations§
impl Freeze for LangAttributes
impl RefUnwindSafe for LangAttributes
impl Send for LangAttributes
impl Sync for LangAttributes
impl Unpin for LangAttributes
impl UnwindSafe for LangAttributes
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