Trait boguin::FromBody [] [src]

pub trait FromBody: Send + Sync + Sized + 'static {
    fn from_body<R: Read>(response: &Parts, body: &mut Body<R>) -> Result<Self>;
}

Read response bodies as strong types.

Used to convert untyped message bodies to a more specific representation.

Read the response header values to determine text encoding, compression applied and content type transmitted.

Required Methods

Implementations on Foreign Types

impl FromBody for ()
[src]

[src]

impl FromBody for Vec<u8>
[src]

[src]

impl FromBody for String
[src]

[src]

Implementors