Struct vault_api::client::Client [] [src]

pub struct Client { /* fields omitted */ }

A client that implements the API by making HTTP calls out to a server.

Methods

impl Client
[src]

[src]

[src]

[src]

[src]

Constructor for creating a Client by passing in a pre-made hyper client.

One should avoid relying on this function if possible, since it adds a dependency on the underlying transport implementation, which it would be better to abstract away. Therefore, using this function may lead to a loss of code generality, which may make it harder to move the application to a serverless environment, for example.

The reason for this function's existence is to support legacy test code, which did mocking at the hyper layer. This is not a recommended way to write new tests. If other reasons are found for using this function, they should be mentioned here.

Trait Implementations

impl Clone for Client
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Client
[src]

[src]

Formats the value using the given formatter. Read more

impl Api for Client
[src]

Important traits for Box<W>
[src]

Revoke lease

Important traits for Box<W>
[src]

Generate certificate

Important traits for Box<W>
[src]

Read certificate

Important traits for Box<W>
[src]

Create an orphan token

Important traits for Box<W>
[src]

Create token

Important traits for Box<W>
[src]

Log in

Important traits for Box<W>
[src]

Renew own token

Auto Trait Implementations

impl Send for Client

impl Sync for Client