Struct curl::easy::Form

pub struct Form { /* fields hidden */ }
Documentation

Multipart/formdata for an HTTP POST request.

This structure is built up and then passed to the Easy::httppost method to be sent off with a request.

Implementations

impl Form
pub fn new() -> Form

Creates a new blank form ready for the addition of new data.

pub fn part<'a, 'data>(&'a mut Self, name: &'data str) -> Part<'a, 'data>

Prepares adding a new part to this Form

Note that the part is not actually added to the form until the add method is called on Part, which may or may not fail.

Trait Implementations

impl Debug for Form
fn fmt(&Self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Drop for Form
fn drop(&mut Self)

Auto Trait Implementations

impl !Send for Form
impl !Sync for Form
impl RefUnwindSafe for Form
impl Unpin for Form
impl UnwindSafe for Form

Blanket Implementations

impl<T> Any for T
where
    T: 'static + ?Sized,
fn type_id(&Self) -> TypeId
impl<T> Borrow<T> for T
where
    T: ?Sized,
fn borrow(&Self) -> &T
impl<T> BorrowMut<T> for T
where
    T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T
impl<T> From<T> for T
fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for T
where
    U: From<T>,
fn into(Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl<T, U> TryFrom<U> for T
where
    U: Into<T>,
type Error = Infallible
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for T
where
    U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
fn try_into(Self) -> Result<U, <U as TryFrom<T>>::Error>