#[non_exhaustive]pub struct Button {Show 13 fields
pub data_map: DataMap,
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 popovertarget: Option<Cow<'static, str>>,
pub popovertargetaction: 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.data_map: DataMap
§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
popovertarget: Option<Cow<'static, str>>
Targets a popover element to toggle, show, or hide
popovertargetaction: Option<Cow<'static, str>>
Indicates whether a targeted popover element is to be toggled, shown, or hidden
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 RenderElement for Button
impl RenderElement for Button
impl StructuralPartialEq for Button
Auto Trait Implementations§
impl RefUnwindSafe for Button
impl Send for Button
impl Sync for Button
impl Unpin for Button
impl UnwindSafe for Button
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