pub trait FormDataMethods<D: DomTypes> {
// Required methods
fn Append(&self, name: USVString, value: USVString);
fn Append_(
&self,
name: USVString,
value: &D::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::Blob,
filename: Option<USVString>,
);
fn Constructor(
global: &D::GlobalScope,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
form: Option<&D::HTMLFormElement>,
submitter: Option<&D::HTMLElement>,
) -> Fallible<DomRoot<D::FormData>>;
}
Required Methods§
fn Append(&self, name: USVString, value: USVString)
fn Append_(&self, name: USVString, value: &D::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::Blob, filename: Option<USVString>)
fn Constructor( global: &D::GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, form: Option<&D::HTMLFormElement>, submitter: Option<&D::HTMLElement>, ) -> Fallible<DomRoot<D::FormData>>
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.