#[non_exhaustive]pub struct Select {
pub data_map: DataMap,
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.data_map: DataMap
§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 RenderElement for Select
impl RenderElement for Select
impl StructuralPartialEq for Select
Auto Trait Implementations§
impl RefUnwindSafe for Select
impl Send for Select
impl Sync for Select
impl Unpin for Select
impl UnwindSafe for Select
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