pub enum TableExtraPolicy {
Allow,
Reject,
Shape(Arc<dyn Shape>),
}Expand description
Policy for keys not listed in a TableShape.
Variants§
Allow
Accept extra keys without checking their values.
Reject
Reject any extra key.
Shape(Arc<dyn Shape>)
Check each extra value with the supplied shape.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TableExtraPolicy
impl !UnwindSafe for TableExtraPolicy
impl Freeze for TableExtraPolicy
impl Send for TableExtraPolicy
impl Sync for TableExtraPolicy
impl Unpin for TableExtraPolicy
impl UnsafeUnpin for TableExtraPolicy
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