pub struct FromMetaOptions {
base: Core,
}
Fields§
§base: Core
Implementations§
source§impl FromMetaOptions
impl FromMetaOptions
pub fn new(di: &DeriveInput) -> Result<Self>
Trait Implementations§
source§impl<'a> From<&'a FromMetaOptions> for FromMetaImpl<'a>
impl<'a> From<&'a FromMetaOptions> for FromMetaImpl<'a>
source§fn from(v: &'a FromMetaOptions) -> Self
fn from(v: &'a FromMetaOptions) -> Self
Converts to this type from the input type.
source§impl ParseAttribute for FromMetaOptions
impl ParseAttribute for FromMetaOptions
source§impl ParseData for FromMetaOptions
impl ParseData for FromMetaOptions
source§fn parse_variant(&mut self, variant: &Variant) -> Result<()>
fn parse_variant(&mut self, variant: &Variant) -> Result<()>
Apply the next found variant to the object, returning an error
if parsing goes wrong.
source§fn parse_field(&mut self, field: &Field) -> Result<()>
fn parse_field(&mut self, field: &Field) -> Result<()>
Apply the next found struct field to the object, returning an error
if parsing goes wrong.
source§fn validate_body(&self, errors: &mut Accumulator)
fn validate_body(&self, errors: &mut Accumulator)
Perform validation checks that require data from more than one field or variant.
The default implementation does no validations.
Implementors can override this method as appropriate for their use-case.
fn parse_body(self, body: &Data) -> Result<Self>
source§impl ToTokens for FromMetaOptions
impl ToTokens for FromMetaOptions
source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Auto Trait Implementations§
impl Freeze for FromMetaOptions
impl RefUnwindSafe for FromMetaOptions
impl !Send for FromMetaOptions
impl !Sync for FromMetaOptions
impl Unpin for FromMetaOptions
impl UnwindSafe for FromMetaOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Spanned for T
impl<T> Spanned for T
source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.