pub struct ResponseParts<'a, T> {
pub ret: T,
pub metadata: Metadata<'a>,
}Expand description
A decoded response value paired with response metadata.
This helper is available for lower-level callers that need both the decoded value and metadata together. Generated Rust client methods do not expose response metadata in their return types.
Fields§
§ret: TThe decoded return value.
metadata: Metadata<'a>Metadata attached to the response by the server.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for ResponseParts<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for ResponseParts<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for ResponseParts<'a, T>where
T: Send,
impl<'a, T> Sync for ResponseParts<'a, T>where
T: Sync,
impl<'a, T> Unpin for ResponseParts<'a, T>where
T: Unpin,
impl<'a, T> UnsafeUnpin for ResponseParts<'a, T>where
T: UnsafeUnpin,
impl<'a, T> UnwindSafe for ResponseParts<'a, 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