pub struct FormElement {
pub node_id: NodeId,
pub action: String,
pub method: FormMethod,
pub inputs: Vec<NodeId>,
}Expand description
A
Fields§
§node_id: NodeIdForm node ID in the DOM
action: StringAction URL
method: FormMethodSubmission method
inputs: Vec<NodeId>Input element node IDs belonging to this form
Implementations§
Source§impl FormElement
impl FormElement
pub fn new(node_id: NodeId, action: &str, method: FormMethod) -> Self
Sourcepub fn encode_form_data(&self, inputs: &[InputElement]) -> String
pub fn encode_form_data(&self, inputs: &[InputElement]) -> String
Build URL-encoded form data from input elements
Trait Implementations§
Source§impl Clone for FormElement
impl Clone for FormElement
Source§fn clone(&self) -> FormElement
fn clone(&self) -> FormElement
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FormElement
impl Debug for FormElement
Source§impl Default for FormElement
impl Default for FormElement
Source§fn default() -> FormElement
fn default() -> FormElement
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FormElement
impl RefUnwindSafe for FormElement
impl Send for FormElement
impl Sync for FormElement
impl Unpin for FormElement
impl UnwindSafe for FormElement
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)