Struct openstack::Session [] [src]

pub struct Session<Auth: AuthMethod> { /* fields omitted */ }

An OpenStack API session.

The session object serves as a wrapper around an HTTP(s) client, handling authentication, accessing the service catalog and token refresh.

The session object also owns region and endpoint interface to use.

Finally, the session object is responsible for API version negotiation.

Methods

impl<'a, Auth: AuthMethod + 'a> Session<Auth>
[src]

Create a new session with a given authentication plugin.

The resulting session will use the default endpoint interface (usually, public) and the first available region.

Convert this session into one using the given region.

Negotiated API versions are reset to their default values.

Convert this session into one using the given endpoint interface.

Negotiated API versions are kept in the new object.

Get a clone of the authentication token.

Get a reference to the authentication method in use.

Get an API version used for given service.

Get a copy of headers to send for given service.

Currently only includes API version headers.

A wrapper for HTTP request.

Get service info for the given service.

Negotiate an API version with the service.

Negotiation is based on version information returned from the root endpoint. If no minimum version is returned, the current version is assumed to be the only supported version.

The resulting API version is cached for this session.

Trait Implementations

impl<Auth: Debug + AuthMethod> Debug for Session<Auth> where Auth::TokenType: Debug
[src]

Formats the value using the given formatter.

impl<Auth: AuthMethod + Clone> Clone for Session<Auth>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more