pub enum FieldPathMode {
Name,
Index,
}
Expand description
Configures how to serialize field identifiers
Variants§
Name
Use the field’s string name as its identifier
Index
Use the field’s index in the struct as its identifier
Trait Implementations§
Source§impl Clone for FieldPathMode
impl Clone for FieldPathMode
Source§fn clone(&self) -> FieldPathMode
fn clone(&self) -> FieldPathMode
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 moreimpl Copy for FieldPathMode
Auto Trait Implementations§
impl Freeze for FieldPathMode
impl RefUnwindSafe for FieldPathMode
impl Send for FieldPathMode
impl Sync for FieldPathMode
impl Unpin for FieldPathMode
impl UnwindSafe for FieldPathMode
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