#[non_exhaustive]pub enum FormMethod {
Get,
Post,
Dialog,
}Expand description
A form’s submission method — the method / formmethod enumerated
attribute (HTML §4.10.19.6). Keywords are ASCII case-insensitive;
the missing and invalid value default is Get.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Get
get — the default.
Post
post.
Dialog
dialog — submission closes the form’s nearest ancestor
<dialog> (HTML §4.10.21.3 step “method is dialog”).
Implementations§
Source§impl FormMethod
impl FormMethod
Trait Implementations§
Source§impl Clone for FormMethod
impl Clone for FormMethod
impl Copy for FormMethod
Source§impl Debug for FormMethod
impl Debug for FormMethod
Source§impl Default for FormMethod
impl Default for FormMethod
impl Eq for FormMethod
Source§impl Hash for FormMethod
impl Hash for FormMethod
Source§impl PartialEq for FormMethod
impl PartialEq for FormMethod
impl StructuralPartialEq for FormMethod
Auto Trait Implementations§
impl Freeze for FormMethod
impl RefUnwindSafe for FormMethod
impl Send for FormMethod
impl Sync for FormMethod
impl Unpin for FormMethod
impl UnsafeUnpin for FormMethod
impl UnwindSafe for FormMethod
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