pub struct Json;
Expand description
This struct is used to parse response body to json
Implementations§
source§impl Json
impl Json
sourcepub fn try_parse<T>(body: ResponseBody) -> ApiResult<T>where
T: 'static + DeserializeOwned,
pub fn try_parse<T>(body: ResponseBody) -> ApiResult<T>where
T: 'static + DeserializeOwned,
Try to parse response
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Json
impl RefUnwindSafe for Json
impl Send for Json
impl Sync for Json
impl Unpin for Json
impl UnwindSafe for Json
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