pub enum FieldOrdering {
Declaration,
AttributesFirst,
}Expand description
Field ordering preference for serialization.
Variants§
Declaration
Fields are serialized in declaration order (default for JSON, etc.)
AttributesFirst
Attributes first, then elements, then text (for XML)
Trait Implementations§
Source§impl Clone for FieldOrdering
impl Clone for FieldOrdering
Source§fn clone(&self) -> FieldOrdering
fn clone(&self) -> FieldOrdering
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 FieldOrdering
impl Debug for FieldOrdering
Source§impl Default for FieldOrdering
impl Default for FieldOrdering
Source§fn default() -> FieldOrdering
fn default() -> FieldOrdering
Returns the “default value” for a type. Read more
Source§impl PartialEq for FieldOrdering
impl PartialEq for FieldOrdering
impl Copy for FieldOrdering
impl Eq for FieldOrdering
impl StructuralPartialEq for FieldOrdering
Auto Trait Implementations§
impl Freeze for FieldOrdering
impl RefUnwindSafe for FieldOrdering
impl Send for FieldOrdering
impl Sync for FieldOrdering
impl Unpin for FieldOrdering
impl UnwindSafe for FieldOrdering
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