pub enum FieldType {
Show 16 variants
Text,
TextArea,
Email,
Password,
Number,
Float,
Boolean,
Date,
DateTime,
Select(Vec<(String, String)>),
ForeignKey {
adapter: Box<dyn DataAdapter>,
value_field: String,
label_field: String,
limit: Option<u64>,
order_by: Option<String>,
},
ManyToMany {
adapter: Box<dyn ManyToManyAdapter>,
},
File {
storage: Arc<dyn FileStorage>,
accept: Vec<String>,
},
Image {
storage: Arc<dyn FileStorage>,
},
Json,
Custom(Box<dyn Widget>),
}Variants§
Text
TextArea
Password
Number
Float
Boolean
Date
DateTime
Select(Vec<(String, String)>)
ForeignKey
Fields
§
adapter: Box<dyn DataAdapter>ManyToMany
Fields
§
adapter: Box<dyn ManyToManyAdapter>File
Image
Fields
§
storage: Arc<dyn FileStorage>Json
Custom(Box<dyn Widget>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FieldType
impl !RefUnwindSafe for FieldType
impl Send for FieldType
impl Sync for FieldType
impl Unpin for FieldType
impl UnsafeUnpin 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