Struct darling_core::options::FdiOptions
[−]
[src]
pub struct FdiOptions { pub base: OuterFrom, pub vis: Option<Ident>, pub generics: Option<Ident>, pub body: Option<Ident>, pub supports: Option<Shape>, }
Fields
base: OuterFrom
vis: Option<Ident>
The field on the target struct which should receive the type visibility, if any.
generics: Option<Ident>
The field on the target struct which should receive the type generics, if any.
body: Option<Ident>
supports: Option<Shape>
Methods
impl FdiOptions
[src]
fn new(di: &DeriveInput) -> Result<Self>
Trait Implementations
impl Debug for FdiOptions
[src]
impl ParseAttribute for FdiOptions
[src]
fn parse_nested(&mut self, mi: &MetaItem) -> Result<()>
Read a meta-item, and apply its values to the current instance.
fn parse_attributes(self, attrs: &[Attribute]) -> Result<Self>
impl ParseBody for FdiOptions
[src]
fn parse_variant(&mut self, variant: &Variant) -> Result<()>
Apply the next found variant to the object, returning an error if parsing goes wrong. Read more
fn parse_field(&mut self, field: &Field) -> Result<()>
Apply the next found struct field to the object, returning an error if parsing goes wrong. Read more