pub struct Form {
pub action: Option<Cow<'static, str>>,
pub enctype: Option<Cow<'static, str>>,
pub method: Option<Cow<'static, str>>,
pub classes: Vec<Cow<'static, str>>,
pub sets: Vec<FieldSet>,
}
Available on crate feature
forms
only.Expand description
An HTML form
Fields§
§action: Option<Cow<'static, str>>
The form action (a relative URL to send the form to)
enctype: Option<Cow<'static, str>>
The form data encoding type
method: Option<Cow<'static, str>>
The method to use on form submission
classes: Vec<Cow<'static, str>>
List of classes to set on the form element
sets: Vec<FieldSet>
The field sets contained in this form
Implementations§
Trait Implementations§
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