[][src]Trait conjure_http::client::VisitRequestBody

pub trait VisitRequestBody<'a, W> {
    type Output;
    fn visit_empty(self) -> Self::Output;
fn visit_serializable<T>(self, body: T) -> Self::Output
    where
        T: Serialize + 'a
;
fn visit_binary<T>(self, body: T) -> Self::Output
    where
        T: WriteBody<W> + 'a
; }

A visitor over request body formats.

Associated Types

type Output

The output type returned by visit methods.

Loading content...

Required methods

fn visit_empty(self) -> Self::Output

Visits an empty body.

fn visit_serializable<T>(self, body: T) -> Self::Output where
    T: Serialize + 'a, 

Visits a serializable body.

fn visit_binary<T>(self, body: T) -> Self::Output where
    T: WriteBody<W> + 'a, 

Visits a streaming, binary body.

Loading content...

Implementors

Loading content...