pub struct Form { /* fields omitted */ }
An async multipart/form-data request.
Creates a new async Form without any content.
Get the boundary that this form will use.
pub fn text<T, U>(self, name: T, value: U) -> Form where T: Into<Cow<'static, str>>, U: Into<Cow<'static, str>>, | [src] |
Add a data field with supplied name and value.
let form = reqwest::async::multipart::Form::new()
.text("username", "seanmonstar")
.text("password", "secret");
Configure this Form
to percent-encode using the path-segment
rules.
Configure this Form
to percent-encode using the attr-char
rules.
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static