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.

Methods

impl Identifier
[src]

[src]

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