pub enum NamespaceSerialization {
None,
Local,
Global,
}Expand description
Defines how the QuickXmlSerializeRenderStep will serialize the different
namespaces of the elements and attributes.
Variants§
None
Do not serialize any namespace definitions.
Local
All namespace definitions are added to the local element if they are not already in scope.
Global
All namespace definitions are serialized to the root element.
Implementations§
Source§impl NamespaceSerialization
impl NamespaceSerialization
Sourcepub fn is_none(&self) -> bool
pub fn is_none(&self) -> bool
Returns true if this is NamespaceSerialization::None, false otherwise.
Sourcepub fn is_some(&self) -> bool
pub fn is_some(&self) -> bool
Returns true if this is NamespaceSerialization::Local or
NamespaceSerialization::Global, false otherwise.
Trait Implementations§
Source§impl Clone for NamespaceSerialization
impl Clone for NamespaceSerialization
Source§fn clone(&self) -> NamespaceSerialization
fn clone(&self) -> NamespaceSerialization
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 NamespaceSerialization
impl Debug for NamespaceSerialization
Source§impl PartialEq for NamespaceSerialization
impl PartialEq for NamespaceSerialization
impl Copy for NamespaceSerialization
impl Eq for NamespaceSerialization
impl StructuralPartialEq for NamespaceSerialization
Auto Trait Implementations§
impl Freeze for NamespaceSerialization
impl RefUnwindSafe for NamespaceSerialization
impl Send for NamespaceSerialization
impl Sync for NamespaceSerialization
impl Unpin for NamespaceSerialization
impl UnwindSafe for NamespaceSerialization
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.