pub struct OptionFieldSpec {
pub key: Symbol,
pub shape: Arc<dyn Shape>,
pub required: bool,
}Expand description
One option field constraint for check_option_map.
Fields§
§key: SymbolSymbol key to look up in the option map.
shape: Arc<dyn Shape>Shape that must accept the option value when present.
required: boolWhether this option must be present.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for OptionFieldSpec
impl !UnwindSafe for OptionFieldSpec
impl Freeze for OptionFieldSpec
impl Send for OptionFieldSpec
impl Sync for OptionFieldSpec
impl Unpin for OptionFieldSpec
impl UnsafeUnpin for OptionFieldSpec
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