pub enum FieldType {
Show 19 variants
Integer,
BigInteger,
Float,
Decimal,
String,
Text,
Boolean,
Date,
Time,
DateTime,
Uuid,
Json,
Binary,
Email,
Url,
IpAddress,
Enum,
ForeignKey,
ManyToMany,
}Expand description
Field types
Variants§
Integer
Integer
BigInteger
Big integer
Float
Float
Decimal
Decimal
String
String
Text
Text (long string)
Boolean
Boolean
Date
Date
Time
Time
DateTime
DateTime
Uuid
UUID
Json
JSON
Binary
Binary/Blob
Url
URL
IpAddress
IP Address
Enum
Enum/Choices
ForeignKey
Foreign key
ManyToMany
Many-to-many
Implementations§
Source§impl FieldType
impl FieldType
Sourcepub fn default_widget(&self) -> WidgetType
pub fn default_widget(&self) -> WidgetType
Get default widget for this field type
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FieldType
impl<'de> Deserialize<'de> for FieldType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for FieldType
impl Eq for FieldType
impl StructuralPartialEq for FieldType
Auto Trait Implementations§
impl Freeze for FieldType
impl RefUnwindSafe for FieldType
impl Send for FieldType
impl Sync for FieldType
impl Unpin for FieldType
impl UnwindSafe for FieldType
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