pub struct Field {
pub name: String,
pub label: String,
pub widget: Widget,
pub required: bool,
pub placeholder: Option<String>,
pub help: Option<String>,
pub options: Vec<Option_>,
pub json_type: JsonType,
}Expand description
One renderable field of a form.
Fields§
§name: StringThe JSON property name; also the form control’s name.
label: String§widget: Widget§required: bool§placeholder: Option<String>§help: Option<String>§options: Vec<Option_>§json_type: JsonTypeJSON type the module expects (string, integer, number,
boolean), used when converting the form back.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnsafeUnpin for Field
impl UnwindSafe for Field
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