pub struct Input {
pub default: Value,
pub choices: Vec<RowChoice>,
pub min: Option<f64>,
pub max: Option<f64>,
pub required: bool,
pub file: Option<FileInput>,
}Expand description
What a draft field declares of its value, in place of a setting’s
descriptor: its default, its choices (value and label), its range,
and whether it may be left empty. The checks it allows need no hook
(Field::check).
Fields§
§default: Value§choices: Vec<RowChoice>§min: Option<f64>§max: Option<f64>§required: bool§file: Option<FileInput>A path field’s chooser: a file to open, or to save under a proposed name (“Browse…” beside the field).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Input
impl<'de> Deserialize<'de> for Input
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
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