Struct darling_core::options::FdiOptions
[−]
[src]
pub struct FdiOptions { pub base: OuterFrom, pub vis: Option<Ident>, pub generics: Option<Ident>, pub data: 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.
data: Option<Ident>
supports: Option<Shape>
Methods
impl FdiOptions
[src]
pub fn new(di: &DeriveInput) -> Result<Self>
[src]
Trait Implementations
impl Debug for FdiOptions
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl ParseAttribute for FdiOptions
[src]
fn parse_nested(&mut self, mi: &Meta) -> Result<()>
[src]
Read a meta-item, and apply its values to the current instance.
fn parse_attributes(self, attrs: &[Attribute]) -> Result<Self>
[src]
impl ParseData for FdiOptions
[src]
fn parse_variant(&mut self, variant: &Variant) -> Result<()>
[src]
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<()>
[src]
Apply the next found struct field to the object, returning an error if parsing goes wrong. Read more
fn parse_body(self, body: &Data) -> Result<Self>
[src]
impl<'a> From<&'a FdiOptions> for FromDeriveInputImpl<'a>
[src]
fn from(v: &'a FdiOptions) -> Self
[src]
Performs the conversion.