vaultrs::api

Function exec_with_empty_result

source
pub async fn exec_with_empty_result<E>(
    client: &impl Client,
    endpoint: E,
) -> Result<(), ClientError>
where E: Endpoint,
Expand description

Executes an Endpoint which is expected to return an empty API result.

Any errors which occur in execution are wrapped in a ClientError::RestClientError and propagated.