pub struct Form<'a> {
pub global: GlobalAttributes<'a>,
pub events: Events<'a>,
pub action: Cow<'a, str>,
pub autocomplete: Cow<'a, str>,
pub enctype: Cow<'a, str>,
pub method: Cow<'a, str>,
pub name: Cow<'a, str>,
pub novalidate: bool,
pub target: Cow<'a, str>,
pub children: Vec<Node<'a>>,
}Expand description
A <form> element
Fields§
§global: GlobalAttributes<'a>The global attributes of this element
events: Events<'a>The element’s events
action: Cow<'a, str>The action attribute
autocomplete: Cow<'a, str>The autocomplete attribute
enctype: Cow<'a, str>The enctype attribute
method: Cow<'a, str>The method attribute
name: Cow<'a, str>The name attribute
novalidate: boolThe novalidate attribute
target: Cow<'a, str>The target attribute
children: Vec<Node<'a>>The children of this element
Trait Implementations§
Source§impl<'a> Element<'a> for Form<'a>
impl<'a> Element<'a> for Form<'a>
Source§fn events_mut(&mut self) -> &mut Events<'a>
fn events_mut(&mut self) -> &mut Events<'a>
Get the mutable events of this element
Source§fn children_mut(&mut self) -> &mut Vec<Node<'a>>
fn children_mut(&mut self) -> &mut Vec<Node<'a>>
Get the mutable children of this element
Source§impl<'a> HasAction<'a> for Form<'a>
impl<'a> HasAction<'a> for Form<'a>
Source§fn get_action(&self) -> &'_ str
fn get_action(&self) -> &'_ str
Get the value of the
action attributeSource§impl<'a> HasAutocomplete<'a> for Form<'a>
impl<'a> HasAutocomplete<'a> for Form<'a>
Source§fn get_autocomplete(&self) -> &'_ str
fn get_autocomplete(&self) -> &'_ str
Get the value of the
autocomplete attributeSource§impl<'a> HasAutofocus<'a> for Form<'a>
impl<'a> HasAutofocus<'a> for Form<'a>
Source§fn get_autofocus(&self) -> bool
fn get_autofocus(&self) -> bool
Get the value of the
autofocus attributeSource§fn set_autofocus(&mut self, val: impl Into<bool>)
fn set_autofocus(&mut self, val: impl Into<bool>)
Set the value of the
autofocus attributeSource§impl<'a> HasEnctype<'a> for Form<'a>
impl<'a> HasEnctype<'a> for Form<'a>
Source§fn get_enctype(&self) -> &'_ str
fn get_enctype(&self) -> &'_ str
Get the value of the
enctype attributeSource§impl<'a> HasItemscope<'a> for Form<'a>
impl<'a> HasItemscope<'a> for Form<'a>
Source§fn get_itemscope(&self) -> bool
fn get_itemscope(&self) -> bool
Get the value of the
itemscope attributeSource§fn set_itemscope(&mut self, val: impl Into<bool>)
fn set_itemscope(&mut self, val: impl Into<bool>)
Set the value of the
itemscope attributeSource§impl<'a> HasMethod<'a> for Form<'a>
impl<'a> HasMethod<'a> for Form<'a>
Source§fn get_method(&self) -> &'_ str
fn get_method(&self) -> &'_ str
Get the value of the
method attributeSource§impl<'a> HasNovalidate<'a> for Form<'a>
impl<'a> HasNovalidate<'a> for Form<'a>
Source§fn get_novalidate(&self) -> bool
fn get_novalidate(&self) -> bool
Get the value of the
novalidate attributeSource§fn set_novalidate(&mut self, val: impl Into<bool>)
fn set_novalidate(&mut self, val: impl Into<bool>)
Set the value of the
novalidate attributeAuto Trait Implementations§
impl<'a> Freeze for Form<'a>
impl<'a> RefUnwindSafe for Form<'a>
impl<'a> Send for Form<'a>
impl<'a> Sync for Form<'a>
impl<'a> Unpin for Form<'a>
impl<'a> UnwindSafe for Form<'a>
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