pub struct EnumShape {
pub repr: Tagging,
pub variants: Vec<VariantShape>,
pub attributes: ContainerAttributes,
}Expand description
Enum-like shape metadata.
Fields§
§repr: TaggingThe enum representation.
variants: Vec<VariantShape>The accepted deserialization variants.
attributes: ContainerAttributesContainer-level Serde attributes.
Trait Implementations§
impl Eq for EnumShape
impl StructuralPartialEq for EnumShape
Auto Trait Implementations§
impl Freeze for EnumShape
impl RefUnwindSafe for EnumShape
impl Send for EnumShape
impl Sync for EnumShape
impl Unpin for EnumShape
impl UnsafeUnpin for EnumShape
impl UnwindSafe for EnumShape
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