pub struct Required;Expand description
Marker type to indicate that a field is required.
Since implementing From<bool> conflics with From<Iterator>, this type can be used
to indicate that a field is required.
Trait Implementations§
Source§impl From<Required> for FieldRequired
impl From<Required> for FieldRequired
Source§fn from(_: Required) -> FieldRequired
fn from(_: Required) -> FieldRequired
Converts to this type from the input type.
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