Skip to main content

AsMultipartBody

Trait AsMultipartBody 

Source
pub trait AsMultipartBody<T> {
    // Required method
    fn as_multipart_body(&self) -> MultipartBody<'_, T>;
}
Expand description

What a generated operation takes a multipart body with file parts as: &T, every file part sending its part name as its filename, or a MultipartBody over T, sending the ones set on it.

Required Methods§

Source

fn as_multipart_body(&self) -> MultipartBody<'_, T>

The body as a MultipartBody, with the file names set on it.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> AsMultipartBody<T> for &T

Implementors§