pub trait MultipartFormOps {
    // Required methods
    fn text<T, U>(self, name: T, value: U) -> Self
       where T: Into<Cow<'static, str>>,
             U: Into<Cow<'static, str>>;
    fn part<T>(self, name: T, part: Part) -> Self
       where T: Into<Cow<'static, str>>;
}
Expand description

Provides functions to update multipart form

Required Methods§

source

fn text<T, U>(self, name: T, value: U) -> Self
where T: Into<Cow<'static, str>>, U: Into<Cow<'static, str>>,

Add a data field with supplied name and value.

source

fn part<T>(self, name: T, part: Part) -> Self
where T: Into<Cow<'static, str>>,

Adds a customized Part.

Object Safety§

This trait is not object safe.

Implementors§