Enum serde_derive_internals::attr::Identifier [] [src]

pub enum Identifier {
    No,
    Field,
    Variant,
}

Whether this enum represents the fields of a struct or the variants of an enum.

Variants

It does not.

This enum represents the fields of a struct. All of the variants must be unit variants, except possibly one which is annotated with #[serde(other)] and is a newtype variant.

This enum represents the variants of an enum. All of the variants must be unit variants.

Trait Implementations

impl Copy for Identifier
[src]

impl Clone for Identifier
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Identifier
[src]

Formats the value using the given formatter.