Struct cargo_swagger::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.

impl Api for Client
[src]

[src]

Upload an API