Struct darling_core::options::FromVariantOptions
[−]
[src]
pub struct FromVariantOptions { pub base: OuterFrom, pub data: Option<Ident>, pub supports: Option<DataShape>, }
Fields
base: OuterFrom
data: Option<Ident>
supports: Option<DataShape>
Methods
impl FromVariantOptions
[src]
fn new(di: &DeriveInput) -> Result<Self>
Trait Implementations
impl Debug for FromVariantOptions
[src]
impl Clone for FromVariantOptions
[src]
fn clone(&self) -> FromVariantOptions
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for FromVariantOptions
[src]
fn eq(&self, __arg_0: &FromVariantOptions) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &FromVariantOptions) -> bool
This method tests for !=
.
impl Eq for FromVariantOptions
[src]
impl ParseAttribute for FromVariantOptions
[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 FromVariantOptions
[src]
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
fn parse_body(self, body: &Body) -> Result<Self>
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