pub struct ParseVariantAttrs {
pub aliases: Option<String>,
pub condition: Option<Path>,
pub parse_fn: Option<Path>,
}
Fields§
§aliases: Option<String>
§condition: Option<Path>
§parse_fn: Option<Path>
Trait Implementations§
source§impl Default for ParseVariantAttrs
impl Default for ParseVariantAttrs
source§fn default() -> ParseVariantAttrs
fn default() -> ParseVariantAttrs
Returns the “default value” for a type. Read more
source§impl FromVariant for ParseVariantAttrs
impl FromVariant for ParseVariantAttrs
source§fn from_variant(__variant: &Variant) -> Result<Self>
fn from_variant(__variant: &Variant) -> Result<Self>
Create an instance from
syn::Variant
, or return an error.Auto Trait Implementations§
impl Freeze for ParseVariantAttrs
impl RefUnwindSafe for ParseVariantAttrs
impl !Send for ParseVariantAttrs
impl !Sync for ParseVariantAttrs
impl Unpin for ParseVariantAttrs
impl UnwindSafe for ParseVariantAttrs
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