Enum serde_codegen_internals::attr::FieldDefault [] [src]

pub enum FieldDefault {
    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 for FieldDefault
[src]

fn eq(&self, __arg_0: &FieldDefault) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &FieldDefault) -> bool

This method tests for !=.

impl Debug for FieldDefault
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.