pub struct VariantOverride {
pub name: Ident,
pub inner_type_name: Option<Ident>,
pub attrs: Vec<TokenStream>,
}Expand description
Variant override info: name, inner type name, and attributes to pass through.
Fields§
§name: IdentThe variant name (as an Ident for better error spans).
inner_type_name: Option<Ident>Optional inner type name override for inline schemas. If specified, inline schemas for this variant will use this name instead of the default.
attrs: Vec<TokenStream>Attributes to apply to the variant (excluding the consumed #[status()])
Trait Implementations§
Source§impl Clone for VariantOverride
impl Clone for VariantOverride
Source§fn clone(&self) -> VariantOverride
fn clone(&self) -> VariantOverride
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VariantOverride
impl RefUnwindSafe for VariantOverride
impl !Send for VariantOverride
impl !Sync for VariantOverride
impl Unpin for VariantOverride
impl UnsafeUnpin for VariantOverride
impl UnwindSafe for VariantOverride
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