#[non_exhaustive]pub enum Kind {
Text,
Number,
Money,
Date,
DateTime,
Bool,
Select,
Tags,
Custom,
Image,
Color,
}Expand description
What a column holds, which decides how its cells look and how it filters.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Text
Text; filtered with “contains”, “starts with”, “ends with”, “equals”,
or a pattern with %.
Number
A number, right-aligned; filtered with a minimum and a maximum.
Money
An amount in the smallest unit (cents, fils), with thousands separators; filtered like a number.
Date
A date (NaiveDate); filtered with a date range.
DateTime
A moment (DateTime); filtered with a date range.
Bool
Yes or no; filtered with a choice.
Select
One of a few values; filtered by picking some of them.
Tags
Several of a few values, stored as a JSON array of strings
(Json<Vec<String>>); filtered by rows having any of the picked ones.
Custom
Drawn by the page’s template (caller(row, column)): charts, buttons,
links. Not sorted or filtered.
Image
An image whose URL is the value (an avatar, a product photo).
Color
A CSS color (#0a7d5a) shown as a swatch with its code.
Trait Implementations§
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more