pub struct TableColumn {
pub id: &'static str,
pub kind: ColumnKind,
pub required: bool,
}Expand description
One trusted column of a table parameter.
A definition’s columns must match the descriptor’s by ID, kind and requirement, in any order; their names and descriptions are presentation.
Fields§
§id: &'static str§kind: ColumnKind§required: boolImplementations§
Source§impl TableColumn
impl TableColumn
Sourcepub const fn required(id: &'static str, kind: ColumnKind) -> Self
pub const fn required(id: &'static str, kind: ColumnKind) -> Self
A column every row must fill.
Sourcepub const fn optional(id: &'static str, kind: ColumnKind) -> Self
pub const fn optional(id: &'static str, kind: ColumnKind) -> Self
A column a row may leave empty.
Trait Implementations§
Source§impl Clone for TableColumn
impl Clone for TableColumn
impl Copy for TableColumn
Source§impl Debug for TableColumn
impl Debug for TableColumn
impl Eq for TableColumn
Source§impl PartialEq for TableColumn
impl PartialEq for TableColumn
impl StructuralPartialEq for TableColumn
Auto Trait Implementations§
impl Freeze for TableColumn
impl RefUnwindSafe for TableColumn
impl Send for TableColumn
impl Sync for TableColumn
impl Unpin for TableColumn
impl UnsafeUnpin for TableColumn
impl UnwindSafe for TableColumn
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