pub enum ResponseBodyKind {
Empty,
Text(String),
Json(Value),
Bytes(Bytes),
}Expand description
Parsed response body selected from Content-Type.
Variants§
Empty
No body bytes.
Text(String)
text/* or unknown UTF-8 text.
Json(Value)
Available on crate feature
json only.application/json (feature json).
Bytes(Bytes)
Binary or non-JSON types.
Trait Implementations§
Source§impl Clone for ResponseBodyKind
impl Clone for ResponseBodyKind
Source§fn clone(&self) -> ResponseBodyKind
fn clone(&self) -> ResponseBodyKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for ResponseBodyKind
impl RefUnwindSafe for ResponseBodyKind
impl Send for ResponseBodyKind
impl Sync for ResponseBodyKind
impl Unpin for ResponseBodyKind
impl UnsafeUnpin for ResponseBodyKind
impl UnwindSafe for ResponseBodyKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more