Struct openstack::session::Session

source ·
pub struct Session { /* private fields */ }
Expand description

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 the endpoint interface to use.

Implementations

Create a new session with a given authentication plugin.

The resulting session will use the default endpoint interface (usually, public).

Set endpoint interface to use.

This call clears the cached service information.

Convert this session into one using the given endpoint interface.

Get a reference to the authentication method in use.

Get a mutable reference to the authentication method in use.

Construct and endpoint for the given service from the path.

Get the currently used major version from the given service.

Get minimum/maximum API (micro)version information.

Returns None if the range cannot be determined, which usually means that microversioning is not supported.

Make an HTTP request to the given service.

Start a GET request.

Start a POST request.

Start a PUT request.

Start a DELETE request.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.