pub enum Default {
None,
Default,
Path(ExprPath),
}
Expand description
Represents the default to use for a field when deserializing.
Variants§
None
Field must always be specified because it does not have a default.
Default
The default is given by std::default::Default::default()
.
Path(ExprPath)
The default is given by this function.
Implementations§
Auto Trait Implementations§
impl Freeze for Default
impl RefUnwindSafe for Default
impl !Send for Default
impl !Sync for Default
impl Unpin for Default
impl UnwindSafe for Default
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