Struct darling_core::options::FromMetaOptions
[−]
[src]
pub struct FromMetaOptions { /* fields omitted */ }
Methods
impl FromMetaOptions
[src]
pub fn new(di: &DeriveInput) -> Result<Self>
[src]
Trait Implementations
impl ParseAttribute for FromMetaOptions
[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 FromMetaOptions
[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 FromMetaOptions> for FromMetaImpl<'a>
[src]
fn from(v: &'a FromMetaOptions) -> Self
[src]
Performs the conversion.