#[non_exhaustive]pub struct Option {
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.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 PartialOrd<Option> for Option
impl PartialOrd<Option> for Option
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