Enum serde_derive_internals::attr::Default[][src]

pub enum Default {
    None,
    Default,
    Path(ExprPath),
}

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

impl Default[src]

pub fn is_none(&self) -> bool[src]

Auto Trait Implementations

impl RefUnwindSafe for Default

impl !Send for Default

impl !Sync for Default

impl Unpin for Default

impl UnwindSafe for Default

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.