pub async fn wrap<E>(
client: &impl Client,
endpoint: E,
) -> Result<WrappedResponse<E>, ClientError>where
E: Endpoint,
Expand description
Executes the given endpoint but requests that the Vault server to return a token wrapped response.
The token is stored in a WrappedResponse and the original response can
be fetched using the unwrap
method provided by the struct.