pub enum AttDefault {
Required,
Implied,
Fixed(String),
Default(String),
}Expand description
XML 1.0 § 3.3.2 default declarations.
Variants§
Required
#REQUIRED
Implied
#IMPLIED
Fixed(String)
#FIXED "value" — attribute must equal value if present.
Default(String)
Literal default value — supplied if the attribute is absent from the document body. v0.1 doesn’t perform defaulting at parse time, so the validator just ignores this and accepts either presence or absence.
Trait Implementations§
Source§impl Clone for AttDefault
impl Clone for AttDefault
Source§fn clone(&self) -> AttDefault
fn clone(&self) -> AttDefault
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 moreAuto Trait Implementations§
impl Freeze for AttDefault
impl RefUnwindSafe for AttDefault
impl Send for AttDefault
impl Sync for AttDefault
impl Unpin for AttDefault
impl UnsafeUnpin for AttDefault
impl UnwindSafe for AttDefault
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