#[non_exhaustive]pub struct Input {Show 30 fields
pub accept: Option<Cow<'static, str>>,
pub alt: Option<Cow<'static, str>>,
pub autocomplete: Option<Cow<'static, str>>,
pub checked: Option<Cow<'static, str>>,
pub dirname: Option<Cow<'static, str>>,
pub disabled: Option<Cow<'static, str>>,
pub form: Option<Cow<'static, str>>,
pub formaction: Option<Cow<'static, str>>,
pub formenctype: Option<Cow<'static, str>>,
pub formmethod: Option<Cow<'static, str>>,
pub formnovalidate: Option<Cow<'static, str>>,
pub formtarget: Option<Cow<'static, str>>,
pub height: Option<Cow<'static, str>>,
pub list: Option<Cow<'static, str>>,
pub max: Option<Cow<'static, str>>,
pub maxlength: Option<Cow<'static, str>>,
pub min: Option<Cow<'static, str>>,
pub minlength: Option<Cow<'static, str>>,
pub multiple: Option<Cow<'static, str>>,
pub name: Option<Cow<'static, str>>,
pub pattern: Option<Cow<'static, str>>,
pub placeholder: Option<Cow<'static, str>>,
pub readonly: Option<Cow<'static, str>>,
pub required: Option<Cow<'static, str>>,
pub size: Option<Cow<'static, str>>,
pub src: Option<Cow<'static, str>>,
pub step: Option<Cow<'static, str>>,
pub type_: Option<Cow<'static, str>>,
pub value: Option<Cow<'static, str>>,
pub width: Option<Cow<'static, str>>,
/* private fields */
}
Expand description
The HTML <input>
element
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.accept: Option<Cow<'static, str>>
Hint for expected file type in file upload controls
alt: Option<Cow<'static, str>>
Replacement text for use when images are not available
autocomplete: Option<Cow<'static, str>>
Hint for form autofill feature
checked: Option<Cow<'static, str>>
Whether the control is checked
dirname: Option<Cow<'static, str>>
Name of form control to use for sending the element’s directionality in form submission
disabled: Option<Cow<'static, str>>
Whether the form control is disabled
form: Option<Cow<'static, str>>
Associates the element with a form element
formaction: Option<Cow<'static, str>>
URL to use for form submission
formenctype: Option<Cow<'static, str>>
Entry list encoding type to use for form submission
formmethod: Option<Cow<'static, str>>
Variant to use for form submission
formnovalidate: Option<Cow<'static, str>>
Bypass form control validation for form submission
formtarget: Option<Cow<'static, str>>
Navigable for form submission
height: Option<Cow<'static, str>>
Vertical dimension
list: Option<Cow<'static, str>>
List of autocomplete options
max: Option<Cow<'static, str>>
Maximum value
maxlength: Option<Cow<'static, str>>
Maximum length of value
min: Option<Cow<'static, str>>
Minimum value
minlength: Option<Cow<'static, str>>
Minimum length of value
multiple: Option<Cow<'static, str>>
Whether to allow multiple values
name: Option<Cow<'static, str>>
Name of the element to use for form submission and in the form.elements API
pattern: Option<Cow<'static, str>>
Pattern to be matched by the form control’s value
placeholder: Option<Cow<'static, str>>
User-visible label to be placed within the form control
readonly: Option<Cow<'static, str>>
Whether to allow the value to be edited by the user
required: Option<Cow<'static, str>>
Whether the control is required for form submission
size: Option<Cow<'static, str>>
Size of the control
src: Option<Cow<'static, str>>
Address of the resource
step: Option<Cow<'static, str>>
Granularity to be matched by the form control’s value
type_: Option<Cow<'static, str>>
Type of form control
value: Option<Cow<'static, str>>
Value of the form control
width: Option<Cow<'static, str>>
Horizontal dimension
Trait Implementations§
source§impl PartialEq<Input> for Input
impl PartialEq<Input> for Input
source§impl PartialOrd<Input> for Input
impl PartialOrd<Input> for Input
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more