Struct darling_core::codegen::Variant [] [src]

pub struct Variant<'a> {
    pub name_in_attr: &'a str,
    pub variant_ident: &'a Ident,
    pub ty_ident: &'a Ident,
    pub data: Fields<Field<'a>>,
    pub skip: bool,
}

An enum variant.

Fields

The name which will appear in code passed to the FromMeta input.

The name of the variant which will be returned for a given name_in_attr.

The name of the parent enum type.

Whether or not the variant should be skipped in the generated code.

Methods

impl<'a> Variant<'a>
[src]

[src]

[src]

Trait Implementations

impl<'a> Debug for Variant<'a>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a> Clone for Variant<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> PartialEq for Variant<'a>
[src]

[src]

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

[src]

This method tests for !=.

impl<'a> Eq for Variant<'a>
[src]

impl<'a> UsesTypeParams for Variant<'a>
[src]

[src]

Returns the subset of the queried type parameters that are used by the implementing syntax element. Read more

Auto Trait Implementations

impl<'a> !Send for Variant<'a>

impl<'a> !Sync for Variant<'a>