pub enum Required {
False,
ValueOrMeta,
Value,
}Expand description
Whether a field must be present.
Variants§
False
The field is not required.
ValueOrMeta
The field requires a value or metadata.
Value
The field requires a value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Required
impl RefUnwindSafe for Required
impl Send for Required
impl Sync for Required
impl Unpin for Required
impl UnsafeUnpin for Required
impl UnwindSafe for Required
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