Struct hvcg_biography_openapi_saint::client::Client[][src]

pub struct Client<S, C> where
    S: Service<(Request<Body>, C), Response = Response<Body>> + Clone + Sync + Send + 'static,
    S::Future: Send + 'static,
    S::Error: Into<Box<dyn Error + Send + Sync + 'static>> + Display,
    C: Clone + Send + Sync + 'static, 
{ /* fields omitted */ }
Expand description

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

Implementations

Create a client with a custom implementation of hyper::client::Connect.

Intended for use with custom implementations of connect for e.g. protocol logging or similar functionality which requires wrapping the transport layer. When wrapping a TCP connection, this function should be used in conjunction with swagger::Connector::builder().

For ordinary tcp connections, prefer the use of try_new_http, try_new_https and try_new_https_mutual, to avoid introducing a dependency on the underlying transport layer.

Arguments

  • base_path - base path of the client API, i.e. “http://www.my-api-implementation.com”
  • protocol - Which protocol to use when constructing the request url, e.g. Some("http")
  • connector - Implementation of hyper::client::Connect to use for the client

Create an HTTP client.

Arguments

  • base_path - base path of the client API, i.e. “http://www.my-api-implementation.com”

Create an HTTP client.

Arguments

  • base_path - base path of the client API, i.e. “http://www.my-api-implementation.com”

Create a client with a TLS connection to the server

Arguments

  • base_path - base path of the client API, i.e. “https://www.my-api-implementation.com”

Create a client with a TLS connection to the server using a pinned certificate

Arguments

  • base_path - base path of the client API, i.e. “https://www.my-api-implementation.com”
  • ca_certificate - Path to CA certificate used to authenticate the server

Create a client with a mutually authenticated TLS connection to the server.

Arguments

  • base_path - base path of the client API, i.e. “https://www.my-api-implementation.com”
  • ca_certificate - Path to CA certificate used to authenticate the server
  • client_key - Path to the client private key
  • client_certificate - Path to the client’s public certificate associated with the private key

Constructor for creating a Client by passing in a pre-made hyper::service::Service / tower::Service

This allows adding custom wrappers around the underlying transport, for example for logging.

Trait Implementations

Add a new pet to the store

Deletes a pet

Finds Pets by status

Finds Pets by tags

Find pet by ID

Update an existing pet

Updates a pet in the store with form data

uploads an image

Delete purchase order by ID

Returns pet inventories by status

Find purchase order by ID

Place an order for a pet

Create user

Creates list of users with given input array

Creates list of users with given input array

Delete user

Get user by user name

Logs user into the system

Logs out current logged in user session

Updated user

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Binds this API to a context.

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.