#[non_exhaustive]pub enum FieldKind {
Show 17 variants
Text,
LongText,
Integer,
Decimal(u8),
Money,
Date,
DateTime,
Boolean,
Enum(Vec<EnumOption>),
Reference(String),
Collection(String),
Color,
Image,
File,
Criteria,
Guid,
Tags(Vec<EnumOption>),
}Expand description
What a field holds, which decides how it is edited and stored.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text
A line of text.
LongText
Text of any length, edited in several lines.
Integer
A whole number.
Decimal(u8)
A number, with these decimal places.
Money
Money, in whole cents, so it is always exact.
Date
A date.
DateTime
A date and a time.
Boolean
Yes or no.
Enum(Vec<EnumOption>)
One of these options.
Reference(String)
Another record, by the name of its entity. It holds that record’s key.
Collection(String)
The records of another entity that point to this one.
Color
A color, as #RRGGBB.
Image
A picture.
File
A file.
Criteria
An expression of the criteria language.
Guid
A key made up when a record is created, the same everywhere: no two machines repeat one.
Tags(Vec<EnumOption>)
Several of these options at once, kept as their codes separated by commas.
Trait Implementations§
impl StructuralPartialEq for FieldKind
Auto Trait Implementations§
impl Freeze for FieldKind
impl RefUnwindSafe for FieldKind
impl Send for FieldKind
impl Sync for FieldKind
impl Unpin for FieldKind
impl UnsafeUnpin for FieldKind
impl UnwindSafe for FieldKind
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