pub struct Part { /* fields omitted */ }Expand description
A field in a multipart form.
pub fn text<T>(value: T) -> Part where
T: Into<Cow<'static, str>>, [src]
Makes a new parameter from arbitrary bytes.
Makes a new parameter from an arbitrary stream.
Tries to set the mime of this part.
pub fn file_name<T>(self, filename: T) -> Part where
T: Into<Cow<'static, str>>, [src]
Sets the filename, builder style.
Formats the value using the given formatter. Read more
impl<T> Any for T where
T: 'static + ?Sized, [src]
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>, [src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.