#[non_exhaustive]pub struct Button {
pub disabled: bool,
pub form: Option<Cow<'static, str>>,
pub form_action: Option<Cow<'static, str>>,
pub form_enctype: Option<Cow<'static, str>>,
pub form_method: Option<Cow<'static, str>>,
pub form_no_validate: bool,
pub form_target: Option<Cow<'static, str>>,
pub name: Option<Cow<'static, str>>,
pub type_: Option<Cow<'static, str>>,
pub value: Option<Cow<'static, str>>,
/* private fields */
}
Expand description
The HTML <button>
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
form: Option<Cow<'static, str>>
Associates the element with a form element
form_action: Option<Cow<'static, str>>
URL to use for form submission
form_enctype: Option<Cow<'static, str>>
Entry list encoding type to use for form submission
form_method: Option<Cow<'static, str>>
Variant to use for form submission
form_no_validate: bool
Bypass form control validation for form submission
form_target: Option<Cow<'static, str>>
Navigable for form submission
name: Option<Cow<'static, str>>
Name of the element to use for form submission and in the form.elements API
type_: Option<Cow<'static, str>>
Type of button
value: Option<Cow<'static, str>>
Value to be used for form submission
Trait Implementations§
source§impl PartialEq<Button> for Button
impl PartialEq<Button> for Button
source§impl PartialOrd<Button> for Button
impl PartialOrd<Button> for Button
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