pub enum ShapeAttribute {
DenyUnknownFields,
Default,
Transparent,
RenameAll(&'static str),
Arbitrary(&'static str),
}
Expand description
An attribute that can be applied to a shape
Variants§
DenyUnknownFields
Reject deserialization upon encountering an unknown key.
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)
Transparent
Indicates that this is a transparent wrapper type, like NewType(T)
it should not be treated like a struct, but like something that can be built
from T
and converted back to T
RenameAll(&'static str)
Specifies a case conversion rule for all fields or variants
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