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§

Source

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

Source

fn Append_(&self, name: USVString, value: &D::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::Blob, filename: Option<USVString>)

Source

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.

Implementors§