Trait script::dom::bindings::codegen::Bindings::FormDataBinding::FormData_Binding::FormDataMethods
source · pub trait FormDataMethods<D: DomTypes> {
// Required methods
fn Append(&self, name: USVString, value: USVString);
fn Append_(
&self,
name: USVString,
value: &Blob,
filename: Option<USVString>,
);
fn Delete(&self, name: USVString);
fn Get(&self, name: USVString) -> Option<FileOrUSVString>;
fn GetAll(&self, name: USVString) -> Vec<FileOrUSVString>;
fn Has(&self, name: USVString) -> bool;
fn Set(&self, name: USVString, value: USVString);
fn Set_(&self, name: USVString, value: &Blob, filename: Option<USVString>);
fn Constructor(
global: &GlobalScope,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
form: Option<&HTMLFormElement>,
) -> Result<Root<Dom<FormData>>, Error>;
}
Required Methods§
fn Append(&self, name: USVString, value: USVString)
fn Append_(&self, name: USVString, value: &Blob, filename: Option<USVString>)
fn Delete(&self, name: USVString)
fn Get(&self, name: USVString) -> Option<FileOrUSVString>
fn GetAll(&self, name: USVString) -> Vec<FileOrUSVString>
fn Has(&self, name: USVString) -> bool
fn Set(&self, name: USVString, value: USVString)
fn Set_(&self, name: USVString, value: &Blob, filename: Option<USVString>)
fn Constructor( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, form: Option<&HTMLFormElement>, ) -> Result<Root<Dom<FormData>>, Error>
Object Safety§
This trait is not object safe.