pub enum DefaultShape {
None,
Default,
Path(&'static str),
}Expand description
A Serde default marker.
Variants§
None
No default is configured.
Default
Default::default() is used.
Path(&'static str)
A custom default function path is used.
Implementations§
Trait Implementations§
Source§impl Clone for DefaultShape
impl Clone for DefaultShape
Source§fn clone(&self) -> DefaultShape
fn clone(&self) -> DefaultShape
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 moreSource§impl Debug for DefaultShape
impl Debug for DefaultShape
impl Eq for DefaultShape
Source§impl PartialEq for DefaultShape
impl PartialEq for DefaultShape
Source§fn eq(&self, other: &DefaultShape) -> bool
fn eq(&self, other: &DefaultShape) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DefaultShape
Auto Trait Implementations§
impl Freeze for DefaultShape
impl RefUnwindSafe for DefaultShape
impl Send for DefaultShape
impl Sync for DefaultShape
impl Unpin for DefaultShape
impl UnsafeUnpin for DefaultShape
impl UnwindSafe for DefaultShape
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