pub struct Field {
pub attrs: Vec<Attribute>,
pub vis: Visibility,
pub mutability: FieldMutability,
pub ident: Option<Ident>,
pub colon_token: Option<Colon>,
pub ty: Type,
}
Expand description
A field of a struct or enum variant.
Fields§
§attrs: Vec<Attribute>
§vis: Visibility
§mutability: FieldMutability
§ident: Option<Ident>
Name of the field, if any.
Fields of tuple structs have no names.
colon_token: Option<Colon>
§ty: Type