Trait darling_core::options::ParseData
[−]
[src]
pub trait ParseData: Sized { fn parse_body(self, body: &Data) -> Result<Self> { ... } fn parse_variant(&mut self, variant: &Variant) -> Result<()> { ... } fn parse_field(&mut self, field: &Field) -> Result<()> { ... } }
Provided Methods
fn parse_body(self, body: &Data) -> 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.
fn parse_field(&mut self, field: &Field) -> Result<()>
Apply the next found struct field to the object, returning an error if parsing goes wrong.
Implementors
impl ParseData for Core
impl ParseData for FdiOptions
impl ParseData for FromFieldOptions
impl ParseData for FromMetaOptions
impl ParseData for FromTypeParamOptions
impl ParseData for FromVariantOptions
impl ParseData for OuterFrom