Struct hvcg_governance_openapi_catholic_polity::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”

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 new deanery

Delete deanery by ID

Get deaneries

Find deanery by ID

Update an existing deanery

Add new diocese

Delete diocese by ID

Find diocese by ID

Get all dioceses

Update an existing diocese

Add new institute

Delete institute by ID

Find institute by ID

Get institutes

Update an existing institute

Add new parish

Delete parish by ID

Find parish by ID

Get all parishes

Update an existing parish

Add new province

Delete province by ID

Find province by ID

Get all provinces

Update an existing province

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more