Trait MultipartPayload

Source
pub trait MultipartPayload: Payload {
    // Required methods
    fn copy_files(&self, into: &mut dyn FnMut(InputFile));
    fn move_files(&mut self, into: &mut dyn FnMut(InputFile));
}
Expand description

Payloads that need to be sent as multipart/form-data because they contain files inside.

Required Methods§

Source

fn copy_files(&self, into: &mut dyn FnMut(InputFile))

Source

fn move_files(&mut self, into: &mut dyn FnMut(InputFile))

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§