pub struct WrappedResponse<E: Endpoint> {
pub info: WrapInfo,
pub endpoint: EndpointResult<E::Response>,
}
Expand description
Represents an API response that has been wrapped by a unique token.
See [response wrapping][https://developer.hashicorp.com/vault/docs/concepts/response-wrapping] for details on how this works. This struct stores the unique token returned by the server as well as the original endpoint request that generated this token. The struct contains methods for interacting with the wrapped response.
Fields§
§info: WrapInfo
§endpoint: EndpointResult<E::Response>
Implementations§
source§impl<E: Endpoint> WrappedResponse<E>
impl<E: Endpoint> WrappedResponse<E>
sourcepub async fn lookup(
&self,
client: &impl Client,
) -> Result<WrappingLookupResponse, ClientError>
pub async fn lookup( &self, client: &impl Client, ) -> Result<WrappingLookupResponse, ClientError>
Retrieves information about this wrapped response
Auto Trait Implementations§
impl<E> Freeze for WrappedResponse<E>
impl<E> !RefUnwindSafe for WrappedResponse<E>
impl<E> Send for WrappedResponse<E>
impl<E> Sync for WrappedResponse<E>
impl<E> Unpin for WrappedResponse<E>
impl<E> !UnwindSafe for WrappedResponse<E>
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