pub struct Input {
pub name: String,
pub kind: String,
pub value: Option<String>,
pub required: bool,
}Expand description
A terminal-compatible form input.
Fields§
§name: StringInput name.
kind: StringInput kind.
value: Option<String>Optional current value.
required: boolWhether a value is required before submission.
Trait Implementations§
impl Eq for Input
impl StructuralPartialEq for Input
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnsafeUnpin for Input
impl UnwindSafe for Input
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