pub enum ShapeAttribute {
DenyUnknownFields,
Default,
Arbitrary(&'static str),
}Expand description
An attribute that can be applied to a shape
Variants§
DenyUnknownFields
Specifies an alternative name for the field (for serialization/deserialization)
Default
Indicates that, when deserializing, fields from this shape that are
missing in the input should be filled with corresponding field values from
a T::default() (where T is this shape)
Arbitrary(&'static str)
Custom field attribute containing arbitrary text
Trait Implementations§
Source§impl Debug for ShapeAttribute
impl Debug for ShapeAttribute
Source§impl PartialEq for ShapeAttribute
impl PartialEq for ShapeAttribute
impl StructuralPartialEq for ShapeAttribute
Auto Trait Implementations§
impl Freeze for ShapeAttribute
impl RefUnwindSafe for ShapeAttribute
impl Send for ShapeAttribute
impl Sync for ShapeAttribute
impl Unpin for ShapeAttribute
impl UnwindSafe for ShapeAttribute
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