script::dom::bindings::codegen::Bindings::FormDataBinding::FormData_Binding

Trait FormDataMethods

Source
pub trait FormDataMethods<D>
where D: DomTypes,
{ // Required methods fn Append(&self, name: USVString, value: USVString); fn Append_( &self, name: USVString, value: &<D as DomTypes>::Blob, filename: Option<USVString>, ); fn Delete(&self, name: USVString); fn Get(&self, name: USVString) -> Option<FileOrUSVString<D>>; fn GetAll(&self, name: USVString) -> Vec<FileOrUSVString<D>>; fn Has(&self, name: USVString) -> bool; fn Set(&self, name: USVString, value: USVString); fn Set_( &self, name: USVString, value: &<D as DomTypes>::Blob, filename: Option<USVString>, ); fn Constructor( global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, form: Option<&<D as DomTypes>::HTMLFormElement>, submitter: Option<&<D as DomTypes>::HTMLElement>, ) -> Result<Root<Dom<<D as DomTypes>::FormData>>, Error>; }

Required Methods§

Source

fn Append(&self, name: USVString, value: USVString)

Source

fn Append_( &self, name: USVString, value: &<D as DomTypes>::Blob, filename: Option<USVString>, )

Source

fn Delete(&self, name: USVString)

Source

fn Get(&self, name: USVString) -> Option<FileOrUSVString<D>>

Source

fn GetAll(&self, name: USVString) -> Vec<FileOrUSVString<D>>

Source

fn Has(&self, name: USVString) -> bool

Source

fn Set(&self, name: USVString, value: USVString)

Source

fn Set_( &self, name: USVString, value: &<D as DomTypes>::Blob, filename: Option<USVString>, )

Source

fn Constructor( global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, form: Option<&<D as DomTypes>::HTMLFormElement>, submitter: Option<&<D as DomTypes>::HTMLElement>, ) -> Result<Root<Dom<<D as DomTypes>::FormData>>, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§