pub struct ColumnModel {
pub name: String,
pub kind: ColumnKind,
pub nullable: bool,
pub required: bool,
pub is_primary_key: bool,
pub filterable: bool,
pub sortable: bool,
}Expand description
One column of a declared table, as the contract’s row schema describes it.
Fields§
§name: StringThe wire key, as the schema spells it.
kind: ColumnKindThe normalized type, from the schema’s type/enum shape.
nullable: boolWhether the schema says the column can hold null: a type
array carrying "null", or an enum listing it.
required: boolWhether the schema lists the column under required.
is_primary_key: boolWhether the schema marks the column as the table’s primary key —
by a description that begins with the words Primary key of
followed by the table’s name, the one way
cratefield_tables::json_schema marks it.
filterable: boolWhether the page’s query accepts an equality filter on the
column: every kind but ColumnKind::Opaque.
sortable: boolWhether the page may be sorted by the column: the schema-required columns and the primary key.
Trait Implementations§
Source§impl Clone for ColumnModel
impl Clone for ColumnModel
Source§impl Debug for ColumnModel
impl Debug for ColumnModel
impl Eq for ColumnModel
Source§impl PartialEq for ColumnModel
impl PartialEq for ColumnModel
impl StructuralPartialEq for ColumnModel
Auto Trait Implementations§
impl Freeze for ColumnModel
impl RefUnwindSafe for ColumnModel
impl Send for ColumnModel
impl Sync for ColumnModel
impl Unpin for ColumnModel
impl UnsafeUnpin for ColumnModel
impl UnwindSafe for ColumnModel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.