#[non_exhaustive]pub struct Form {
pub data_map: DataMap,
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.data_map: DataMap
§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 RenderElement for Form
impl RenderElement for Form
impl StructuralPartialEq for Form
Auto Trait Implementations§
impl RefUnwindSafe for Form
impl Send for Form
impl Sync for Form
impl Unpin for Form
impl UnwindSafe for Form
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