Struct chef_api::api_client::ApiClient [] [src]

pub struct ApiClient {
    pub config: Config,
    pub client: Rc<HyperClient<HttpsConnector<HttpConnector>>>,
    pub core: Rc<RefCell<Core>>,
}

Struct used to start requests to the Chef Server API.

Fields

Configuration for the client, containing credentials

The Hyper HTTP Client.

The async core

Methods

impl ApiClient
[src]

[src]

Create a new ApiClient struct. It takes a Config type. Typically one would use from_credentials rather than calling this directly.

[src]

Create a new ApiClient struct using a set of credentials as defined in Chef RFC 99.

Accepts an Option<String> containing the name of a credentials profile.

[src]

Generate a new $type request.

[src]

Generate a new $type request.

[src]

Generate a new $type request.

[src]

Generate a new $type request.

[src]

Generate a new $type request.

[src]

Generate a new $type request.

[src]

Generate a new $type request.

[src]

Generate a new $type request.

[src]

Generate a new $type request.

[src]

Generate a new $type request.

[src]

Generate a new $type request.

[src]

Generate a new $type request.

[src]

Generate a new $type request.

[src]

Generate a new $type request.

[src]

Generate a new $type request.

[src]

Generate a new $type request.

[src]

Generate a new $type request.

[src]

Generate a new $type request.

[src]

Generate a new $type request.

[src]

Generate a new $type request.

Trait Implementations

impl Debug for ApiClient
[src]

[src]

Formats the value using the given formatter.

impl Clone for ApiClient
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more