#[non_exhaustive]pub struct Form {
pub accept_charset: Option<Cow<'static, str>>,
pub action: Option<Cow<'static, str>>,
pub autocomplete: Option<Cow<'static, str>>,
pub enctype: Option<Cow<'static, str>>,
pub method: Option<Cow<'static, str>>,
pub name: Option<Cow<'static, str>>,
pub no_validate: bool,
pub target: Option<Cow<'static, str>>,
/* private fields */
}
Expand description
The HTML <form>
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.accept_charset: Option<Cow<'static, str>>
Character encodings to use for form submission
action: Option<Cow<'static, str>>
URL to use for form submission
autocomplete: Option<Cow<'static, str>>
Default setting for autofill feature for controls in the form
enctype: Option<Cow<'static, str>>
Entry list encoding type to use for form submission
method: Option<Cow<'static, str>>
Variant to use for form submission
name: Option<Cow<'static, str>>
Name of form to use in the document.forms API
no_validate: bool
Bypass form control validation for form submission
target: Option<Cow<'static, str>>
Navigable for form submission
Trait Implementations§
source§impl PartialEq<Form> for Form
impl PartialEq<Form> for Form
source§impl PartialOrd<Form> for Form
impl PartialOrd<Form> for Form
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