#[non_exhaustive]pub struct Select {
pub autocomplete: Option<Cow<'static, str>>,
pub disabled: bool,
pub form: Option<Cow<'static, str>>,
pub multiple: bool,
pub name: Option<Cow<'static, str>>,
pub required: bool,
pub size: Option<i64>,
/* private fields */
}
Expand description
The HTML <select>
element
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.autocomplete: Option<Cow<'static, str>>
Hint for form autofill feature
disabled: bool
Whether the form control is disabled
form: Option<Cow<'static, str>>
Associates the element with a form element
multiple: bool
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
required: bool
Whether the control is required for form submission
size: Option<i64>
Size of the control
Trait Implementations§
source§impl PartialEq<Select> for Select
impl PartialEq<Select> for Select
source§impl PartialOrd<Select> for Select
impl PartialOrd<Select> for Select
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more