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>>,
Makes a new parameter from arbitrary bytes.
Makes a new parameter from an arbitrary stream.
Makes a new parameter from an arbitrary stream with a known length. This is particularly
useful when adding something like file contents as a stream, where you can know the content
length beforehand.
Tries to set the mime of this part.
Sets the filename, builder style.
Formats the value using the given formatter. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the current Span
, returning an
Instrumented
wrapper. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,