Struct web_sys::HtmlFormElement
source · #[repr(transparent)]pub struct HtmlFormElement { /* private fields */ }
Expand description
The HTMLFormElement
object
This API requires the following crate features to be activated: HtmlFormElement
Implementations§
source§impl HtmlFormElement
impl HtmlFormElement
sourcepub fn check_validity(&self) -> bool
pub fn check_validity(&self) -> bool
The checkValidity()
method
This API requires the following crate features to be activated: HtmlFormElement
source§impl HtmlFormElement
impl HtmlFormElement
sourcepub fn report_validity(&self) -> bool
pub fn report_validity(&self) -> bool
The reportValidity()
method
This API requires the following crate features to be activated: HtmlFormElement
source§impl HtmlFormElement
impl HtmlFormElement
source§impl HtmlFormElement
impl HtmlFormElement
sourcepub fn get_with_index(&self, index: u32) -> Element
pub fn get_with_index(&self, index: u32) -> Element
The indexing getter
This API requires the following crate features to be activated: Element
, HtmlFormElement
source§impl HtmlFormElement
impl HtmlFormElement
sourcepub fn get_with_name(&self, name: &str) -> Object
pub fn get_with_name(&self, name: &str) -> Object
The indexing getter
This API requires the following crate features to be activated: HtmlFormElement
source§impl HtmlFormElement
impl HtmlFormElement
sourcepub fn accept_charset(&self) -> String
pub fn accept_charset(&self) -> String
The acceptCharset
getter
This API requires the following crate features to be activated: HtmlFormElement
source§impl HtmlFormElement
impl HtmlFormElement
sourcepub fn set_accept_charset(&self, accept_charset: &str)
pub fn set_accept_charset(&self, accept_charset: &str)
The acceptCharset
setter
This API requires the following crate features to be activated: HtmlFormElement
source§impl HtmlFormElement
impl HtmlFormElement
source§impl HtmlFormElement
impl HtmlFormElement
sourcepub fn set_action(&self, action: &str)
pub fn set_action(&self, action: &str)
The action
setter
This API requires the following crate features to be activated: HtmlFormElement
source§impl HtmlFormElement
impl HtmlFormElement
sourcepub fn autocomplete(&self) -> String
pub fn autocomplete(&self) -> String
The autocomplete
getter
This API requires the following crate features to be activated: HtmlFormElement
source§impl HtmlFormElement
impl HtmlFormElement
sourcepub fn set_autocomplete(&self, autocomplete: &str)
pub fn set_autocomplete(&self, autocomplete: &str)
The autocomplete
setter
This API requires the following crate features to be activated: HtmlFormElement
source§impl HtmlFormElement
impl HtmlFormElement
source§impl HtmlFormElement
impl HtmlFormElement
sourcepub fn set_enctype(&self, enctype: &str)
pub fn set_enctype(&self, enctype: &str)
The enctype
setter
This API requires the following crate features to be activated: HtmlFormElement
source§impl HtmlFormElement
impl HtmlFormElement
source§impl HtmlFormElement
impl HtmlFormElement
sourcepub fn set_encoding(&self, encoding: &str)
pub fn set_encoding(&self, encoding: &str)
The encoding
setter
This API requires the following crate features to be activated: HtmlFormElement
source§impl HtmlFormElement
impl HtmlFormElement
source§impl HtmlFormElement
impl HtmlFormElement
sourcepub fn set_method(&self, method: &str)
pub fn set_method(&self, method: &str)
The method
setter
This API requires the following crate features to be activated: HtmlFormElement
source§impl HtmlFormElement
impl HtmlFormElement
source§impl HtmlFormElement
impl HtmlFormElement
source§impl HtmlFormElement
impl HtmlFormElement
sourcepub fn no_validate(&self) -> bool
pub fn no_validate(&self) -> bool
The noValidate
getter
This API requires the following crate features to be activated: HtmlFormElement
source§impl HtmlFormElement
impl HtmlFormElement
sourcepub fn set_no_validate(&self, no_validate: bool)
pub fn set_no_validate(&self, no_validate: bool)
The noValidate
setter
This API requires the following crate features to be activated: HtmlFormElement
source§impl HtmlFormElement
impl HtmlFormElement
source§impl HtmlFormElement
impl HtmlFormElement
sourcepub fn set_target(&self, target: &str)
pub fn set_target(&self, target: &str)
The target
setter
This API requires the following crate features to be activated: HtmlFormElement
source§impl HtmlFormElement
impl HtmlFormElement
sourcepub fn elements(&self) -> HtmlCollection
pub fn elements(&self) -> HtmlCollection
The elements
getter
This API requires the following crate features to be activated: HtmlCollection
, HtmlFormElement
Trait Implementations§
source§impl AsRef<Element> for HtmlFormElement
impl AsRef<Element> for HtmlFormElement
source§impl AsRef<EventTarget> for HtmlFormElement
impl AsRef<EventTarget> for HtmlFormElement
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
source§impl AsRef<HtmlElement> for HtmlFormElement
impl AsRef<HtmlElement> for HtmlFormElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<JsValue> for HtmlFormElement
impl AsRef<JsValue> for HtmlFormElement
source§impl AsRef<Node> for HtmlFormElement
impl AsRef<Node> for HtmlFormElement
source§impl AsRef<Object> for HtmlFormElement
impl AsRef<Object> for HtmlFormElement
source§impl Clone for HtmlFormElement
impl Clone for HtmlFormElement
source§fn clone(&self) -> HtmlFormElement
fn clone(&self) -> HtmlFormElement
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HtmlFormElement
impl Debug for HtmlFormElement
source§impl From<HtmlFormElement> for Element
impl From<HtmlFormElement> for Element
source§fn from(obj: HtmlFormElement) -> Element
fn from(obj: HtmlFormElement) -> Element
source§impl From<HtmlFormElement> for EventTarget
impl From<HtmlFormElement> for EventTarget
source§fn from(obj: HtmlFormElement) -> EventTarget
fn from(obj: HtmlFormElement) -> EventTarget
source§impl From<HtmlFormElement> for HtmlElement
impl From<HtmlFormElement> for HtmlElement
source§fn from(obj: HtmlFormElement) -> HtmlElement
fn from(obj: HtmlFormElement) -> HtmlElement
source§impl From<HtmlFormElement> for JsValue
impl From<HtmlFormElement> for JsValue
source§fn from(obj: HtmlFormElement) -> JsValue
fn from(obj: HtmlFormElement) -> JsValue
source§impl From<HtmlFormElement> for Node
impl From<HtmlFormElement> for Node
source§fn from(obj: HtmlFormElement) -> Node
fn from(obj: HtmlFormElement) -> Node
source§impl From<HtmlFormElement> for Object
impl From<HtmlFormElement> for Object
source§fn from(obj: HtmlFormElement) -> Object
fn from(obj: HtmlFormElement) -> Object
source§impl From<JsValue> for HtmlFormElement
impl From<JsValue> for HtmlFormElement
source§fn from(obj: JsValue) -> HtmlFormElement
fn from(obj: JsValue) -> HtmlFormElement
source§impl FromWasmAbi for HtmlFormElement
impl FromWasmAbi for HtmlFormElement
source§impl<'a> IntoWasmAbi for &'a HtmlFormElement
impl<'a> IntoWasmAbi for &'a HtmlFormElement
source§impl IntoWasmAbi for HtmlFormElement
impl IntoWasmAbi for HtmlFormElement
source§impl JsCast for HtmlFormElement
impl JsCast for HtmlFormElement
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
T
. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
source§impl OptionFromWasmAbi for HtmlFormElement
impl OptionFromWasmAbi for HtmlFormElement
source§impl<'a> OptionIntoWasmAbi for &'a HtmlFormElement
impl<'a> OptionIntoWasmAbi for &'a HtmlFormElement
source§impl OptionIntoWasmAbi for HtmlFormElement
impl OptionIntoWasmAbi for HtmlFormElement
source§impl RefFromWasmAbi for HtmlFormElement
impl RefFromWasmAbi for HtmlFormElement
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<HtmlFormElement>
type Anchor = ManuallyDrop<HtmlFormElement>
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read moreAuto Trait Implementations§
impl RefUnwindSafe for HtmlFormElement
impl Send for HtmlFormElement
impl Sync for HtmlFormElement
impl Unpin for HtmlFormElement
impl UnwindSafe for HtmlFormElement
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more