[][src]Enum serde_codegen_internals::attr::Default

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

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(Path)

The default is given by this function.

Trait Implementations

impl PartialEq<Default> for Default[src]

impl Debug for Default[src]

Auto Trait Implementations

impl Send for Default

impl Unpin for Default

impl Sync for Default

impl UnwindSafe for Default

impl RefUnwindSafe for Default

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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