pub enum IncludePrefix {
Always,
WhenNecessaryForPreferredPrefix,
Never,
}Expand description
Setting for whether to enforce a prefix when serializing.
Variants§
Always
Always enforce the prefix.
WhenNecessaryForPreferredPrefix
Only when the preferred prefix is not the used prefix.
Never
Only use the prefix when it is absolutely necessary.
Trait Implementations§
Source§impl Clone for IncludePrefix
impl Clone for IncludePrefix
Source§fn clone(&self) -> IncludePrefix
fn clone(&self) -> IncludePrefix
Returns a copy 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 IncludePrefix
impl Debug for IncludePrefix
Source§impl Default for IncludePrefix
impl Default for IncludePrefix
Source§fn default() -> IncludePrefix
fn default() -> IncludePrefix
Returns the “default value” for a type. Read more
Source§impl Hash for IncludePrefix
impl Hash for IncludePrefix
Source§impl Ord for IncludePrefix
impl Ord for IncludePrefix
Source§fn cmp(&self, other: &IncludePrefix) -> Ordering
fn cmp(&self, other: &IncludePrefix) -> 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 IncludePrefix
impl PartialEq for IncludePrefix
Source§impl PartialOrd for IncludePrefix
impl PartialOrd for IncludePrefix
impl Copy for IncludePrefix
impl Eq for IncludePrefix
impl StructuralPartialEq for IncludePrefix
Auto Trait Implementations§
impl Freeze for IncludePrefix
impl RefUnwindSafe for IncludePrefix
impl Send for IncludePrefix
impl Sync for IncludePrefix
impl Unpin for IncludePrefix
impl UnwindSafe for IncludePrefix
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