pub enum ColumnType {
String,
Text,
SpacedString,
Number,
Boolean,
Select,
Computed,
Map,
}Expand description
How the browser renders and edits one column.
Variants§
String
A single-line value.
Text
A single-line value that grows to fill the row.
SpacedString
A single-line value whose spacing is significant, so it is not trimmed.
Number
A numeric value, stored as a number rather than a string.
Boolean
A true-or-false value, stored as a JSON boolean. A bundle gives the
cell an unset state beside the two and writes it as an absent field
rather than as false, so a row nobody has answered is told apart from
one answered no.
Select
A value chosen from options, or from options_by when the list
depends on another column.
Computed
A read-only value taken from the row’s derivation by from.
Map
A key-to-value object, rendered as one chip per entry.
Trait Implementations§
Source§impl Clone for ColumnType
impl Clone for ColumnType
impl Copy for ColumnType
Source§impl Debug for ColumnType
impl Debug for ColumnType
impl Eq for ColumnType
Source§impl PartialEq for ColumnType
impl PartialEq for ColumnType
Source§impl Serialize for ColumnType
impl Serialize for ColumnType
impl StructuralPartialEq for ColumnType
Auto Trait Implementations§
impl Freeze for ColumnType
impl RefUnwindSafe for ColumnType
impl Send for ColumnType
impl Sync for ColumnType
impl Unpin for ColumnType
impl UnsafeUnpin for ColumnType
impl UnwindSafe for ColumnType
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