pub enum ResponseData {
Json(Value),
Text(String),
Bytes(Bytes),
FormData(HashMap<String, String>),
}
Variants§
Trait Implementations§
Source§impl Clone for ResponseData
impl Clone for ResponseData
Source§fn clone(&self) -> ResponseData
fn clone(&self) -> ResponseData
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ResponseData
impl Debug for ResponseData
Source§impl<'de> Deserialize<'de> for ResponseData
impl<'de> Deserialize<'de> for ResponseData
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !Freeze for ResponseData
impl RefUnwindSafe for ResponseData
impl Send for ResponseData
impl Sync for ResponseData
impl Unpin for ResponseData
impl UnwindSafe for ResponseData
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