Enum serde_derive_state_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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Identifier
[src]

[src]

Formats the value using the given formatter.