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§

source

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

source

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

source

fn Delete(&self, name: USVString)

source

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

source

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

source

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

source

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

source

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

source

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.

Implementors§