Enum syn_helpers::Fields
source · pub enum Fields {
Named(Vec<NamedField>, Vec<Attribute>),
Unnamed(Vec<UnnamedField>, Vec<Attribute>),
Unit(Vec<Attribute>),
}Expand description
Represents the fields in a structure. This could be the fields on a struct or the fields in the variant of a enum
Variants§
Named(Vec<NamedField>, Vec<Attribute>)
*name* { X: String }
Unnamed(Vec<UnnamedField>, Vec<Attribute>)
*name*(String)
Unit(Vec<Attribute>)
No fields *name*