pub struct FormField {Show 13 fields
pub id: String,
pub name: String,
pub field_type: String,
pub label: Option<String>,
pub placeholder: Option<String>,
pub description: Option<String>,
pub default_value: Option<Value>,
pub bind_to: Option<String>,
pub required: bool,
pub disabled: Option<Value>,
pub options: Vec<SelectOption>,
pub validation: Option<ValidationRule>,
pub events: Option<EventHandlers>,
}Expand description
Form field definition.
Fields§
§id: String§name: String§field_type: String§label: Option<String>§placeholder: Option<String>§description: Option<String>§default_value: Option<Value>§bind_to: Option<String>§required: bool§disabled: Option<Value>§options: Vec<SelectOption>§validation: Option<ValidationRule>§events: Option<EventHandlers>Trait Implementations§
Source§impl<'de> Deserialize<'de> for FormField
impl<'de> Deserialize<'de> for FormField
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
Auto Trait Implementations§
impl Freeze for FormField
impl RefUnwindSafe for FormField
impl Send for FormField
impl Sync for FormField
impl Unpin for FormField
impl UnwindSafe for FormField
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