Struct anterofit::net::body::Readable [−][src]
The result of serializing the request body, ready to be sent over the network.
Fields
readable: R
The inner Read
impl which will be copied into the request body.
content_type: Option<Mime>
The MIME type of the request body, if applicable.
Methods
impl<R: Read> Readable<R>
[src]
impl<R: Read> Readable<R>
pub fn new_ok<C: Into<Option<Mime>>>(
readable: R,
content_type: C
) -> Result<Self>
[src]
pub fn new_ok<C: Into<Option<Mime>>>(
readable: R,
content_type: C
) -> Result<Self>
Create a new Readable
wrapped in ::Result::Ok
for convenience.
pub fn new<C: Into<Option<Mime>>>(readable: R, content_type: C) -> Self
[src]
pub fn new<C: Into<Option<Mime>>>(readable: R, content_type: C) -> Self
Create a new Readable
with the given Read
and MIME type (can be an Option
or a bare
Mime
value).
Trait Implementations
impl<R: Debug> Debug for Readable<R>
[src]
impl<R: Debug> Debug for Readable<R>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<R> From<Readable<R>> for RawBody<R>
[src]
impl<R> From<Readable<R>> for RawBody<R>