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§
Source§impl Clone for TableExtraPolicy
impl Clone for TableExtraPolicy
Source§fn clone(&self) -> TableExtraPolicy
fn clone(&self) -> TableExtraPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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