Struct syn::Field [] [src]

pub struct Field {
    pub ident: Option<Ident>,
    pub vis: Visibility,
    pub attrs: Vec<Attribute>,
    pub ty: Ty,
}

A field of a struct or enum variant.

Fields

Name of the field, if any.

Fields of tuple structs have no names.

Visibility of the field.

Attributes tagged on the field.

Type of the field.

Trait Implementations

impl ToTokens for Field
[src]

Write self to the given Tokens. Read more

impl Debug for Field
[src]

Formats the value using the given formatter.

impl Clone for Field
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Field
[src]

impl PartialEq for Field
[src]

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

This method tests for !=.

impl Hash for Field
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more