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]

[src]
[]

Write self to the given Tokens. Read more

impl Debug for Field
[src]

[src]
[]

Formats the value using the given formatter.

impl Clone for Field
[src]

[src]
[]

Returns a copy of the value. Read more

1.0.0
[src]
[]

Performs copy-assignment from source. Read more

impl Eq for Field
[src]

impl PartialEq for Field
[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 Hash for Field
[src]

[src]
[]

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

1.3.0
[src]
[]

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