https://docs.rs

DeriveInput in syn - Rust

pub struct DeriveInput {
    pub attrs: Vec<Attribute>,
    pub vis: Visibility,
    pub ident: Ident,
    pub generics: Generics,
    pub data: Data,
}

Available on crate feature derive only. Expand description

Data structure sent to a proc_macro_derive macro.

This type is available only if Syn is built with the "derive" feature.

Attributes tagged on the whole struct or enum.

Visibility of the struct or enum.

Name of the struct or enum.

Generics required to complete the definition.

Data within the struct or enum.

source § Available on crate feature clone-impls only. source § Available on crate feature extra-traits only. source §

source §

Converts to this type from the input type.

source §

Converts to this type from the input type.

source §

source §

Converts to this type from the input type.

source §

source §

Converts to this type from the input type.

source § Available on crate feature extra-traits only. source § Available on crate feature parsing only.

source §

source § Available on crate feature extra-traits only.

source §

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

1.0.0 · source §

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

source § Available on crate feature printing only. source § Available on crate feature extra-traits only.

§§§§§