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
No
It does not.
Field
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.
Variant
This enum represents the variants of an enum. All of the variants must be unit variants.
Methods
impl Identifier
[src]
Trait Implementations
impl Copy for Identifier
[src]
impl Clone for Identifier
[src]
fn clone(&self) -> Identifier
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more