pub struct FormField {
pub label: String,
pub input: TextInputState,
pub error: Option<String>,
}Expand description
A single form field with label and validation.
Fields§
§label: StringField label shown above the input.
input: TextInputStateText input state for this field.
error: Option<String>Validation error shown below the input when present.
Implementations§
Auto Trait Implementations§
impl Freeze for FormField
impl RefUnwindSafe for FormField
impl Send for FormField
impl Sync for FormField
impl Unpin for FormField
impl UnsafeUnpin 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