pub(crate) 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§
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>
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.