Enum syn_helpers::Structure[][src]

pub enum Structure<'a> {
    Struct {
        struct_name: &'a Ident,
        struct_attributes: &'a Vec<Attribute>,
    },
    EnumVariant {
        enum_name: &'a Ident,
        enum_attributes: &'a Vec<Attribute>,
        variant_name: &'a Ident,
        variant_attributes: &'a Vec<Attribute>,
    },
}
Expand description

The data type the field is on

Variants

Struct

Fields

struct_name: &'a Ident
struct_attributes: &'a Vec<Attribute>

EnumVariant

Fields

enum_name: &'a Ident
enum_attributes: &'a Vec<Attribute>
variant_name: &'a Ident
variant_attributes: &'a Vec<Attribute>

Implementations

Struct name or just the variant

Struct name or enum and variant name concatenated with double colon

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.