Enum easy_http_request::HttpRequestBody[][src]

pub enum HttpRequestBody<BK: Eq + Hash + AsRef<str>, BV: AsRef<str>> {
    Binary {
        content_type: Mime,
        body: Vec<u8>,
    },
    Text {
        content_type: Mime,
        body: String,
    },
    FormURLEncoded(HashMap<BK, BV>),
}

A http request body that you want to send.

Variants

Binary

Fields of Binary

content_type: Mimebody: Vec<u8>
Text

Fields of Text

content_type: Mimebody: String
FormURLEncoded(HashMap<BK, BV>)

Trait Implementations

impl<BK: Eq + Hash + AsRef<str> + Clone, BV: AsRef<str> + Clone> Clone for HttpRequestBody<BK, BV>[src]

impl<BK: Debug + Eq + Hash + AsRef<str>, BV: Debug + AsRef<str>> Debug for HttpRequestBody<BK, BV>[src]

Auto Trait Implementations

impl<BK, BV> RefUnwindSafe for HttpRequestBody<BK, BV> where
    BK: RefUnwindSafe,
    BV: RefUnwindSafe

impl<BK, BV> Send for HttpRequestBody<BK, BV> where
    BK: Send,
    BV: Send

impl<BK, BV> Sync for HttpRequestBody<BK, BV> where
    BK: Sync,
    BV: Sync

impl<BK, BV> Unpin for HttpRequestBody<BK, BV> where
    BK: Unpin,
    BV: Unpin

impl<BK, BV> UnwindSafe for HttpRequestBody<BK, BV> where
    BK: UnwindSafe,
    BV: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any