Struct futures_await_syn::Field [] [src]

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

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.

Methods

impl Field
[src]

Trait Implementations

impl ToTokens for Field
[src]

[src]

Write self to the given Tokens. Read more

[src]

Convert self directly into a Tokens object. Read more

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