pub struct Response<T> { /* private fields */ }Expand description
通过通用业务信封校验后的成功响应。
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>
将无损 JSON 数据解码为应用自有的响应类型。
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