pub struct TableFieldSpec {
pub key: Symbol,
pub shape: Arc<dyn Shape>,
pub required: bool,
}Expand description
One field constraint inside a TableShape.
Fields§
§key: SymbolSymbol key to look up in the table or map expression.
shape: Arc<dyn Shape>Shape that must accept the field value or expression.
required: boolWhether the field must be present.
Trait Implementations§
Source§impl Clone for TableFieldSpec
impl Clone for TableFieldSpec
Source§fn clone(&self) -> TableFieldSpec
fn clone(&self) -> TableFieldSpec
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 TableFieldSpec
impl !UnwindSafe for TableFieldSpec
impl Freeze for TableFieldSpec
impl Send for TableFieldSpec
impl Sync for TableFieldSpec
impl Unpin for TableFieldSpec
impl UnsafeUnpin for TableFieldSpec
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