pub struct Response<T> { /* private fields */ }Expand description
Successful response after the common business envelope has been checked.
Implementations§
Source§impl Response<Value>
impl Response<Value>
Sourcepub fn into_typed<T: DeserializeOwned>(self) -> Result<Response<T>, Error>
pub fn into_typed<T: DeserializeOwned>(self) -> Result<Response<T>, Error>
Decode lossless JSON data into an application-owned response type.
Trait Implementations§
impl<T: PartialEq> StructuralPartialEq for Response<T>
Auto Trait Implementations§
impl<T> Freeze for Response<T>where
T: Freeze,
impl<T> RefUnwindSafe for Response<T>where
T: RefUnwindSafe,
impl<T> Send for Response<T>where
T: Send,
impl<T> Sync for Response<T>where
T: Sync,
impl<T> Unpin for Response<T>where
T: Unpin,
impl<T> UnsafeUnpin for Response<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Response<T>where
T: UnwindSafe,
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