#[non_exhaustive]pub struct Option {
pub data_map: DataMap,
pub disabled: bool,
pub label: Option<Cow<'static, str>>,
pub selected: bool,
pub value: Option<Cow<'static, str>>,
/* private fields */
}
Expand description
The HTML <option>
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
§disabled: bool
Whether the form control is disabled
label: Option<Cow<'static, str>>
User-visible label
selected: bool
Whether the option is selected by default
value: Option<Cow<'static, str>>
Value to be used for form submission
Trait Implementations§
source§impl PartialEq<Option> for Option
impl PartialEq<Option> for Option
source§impl RenderElement for Option
impl RenderElement for Option
impl StructuralPartialEq for Option
Auto Trait Implementations§
impl RefUnwindSafe for Option
impl Send for Option
impl Sync for Option
impl Unpin for Option
impl UnwindSafe for Option
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