Struct openstack::session::Session
[−]
[src]
pub struct Session<Auth: AuthMethod> { /* fields omitted */ }
An OpenStack API session.
Owns a token and an underlying client.
Methods
impl<'a, Auth: AuthMethod + 'a> Session<Auth>
[src]
fn new(auth_method: Auth) -> Session<Auth>
Create a new session with a given authentication plugin.
fn auth_token(&self) -> ApiResult<Auth::TokenType>
Get a clone of the authentication token.
fn get_endpoint(&self,
service_type: &str,
endpoint_interface: Option<&str>,
region: Option<&str>)
-> ApiResult<Url>
service_type: &str,
endpoint_interface: Option<&str>,
region: Option<&str>)
-> ApiResult<Url>
Get an endpoint URL.
fn request<U: IntoUrl>(&'a self,
method: Method,
url: U)
-> AuthenticatedRequestBuilder<'a, Auth>
method: Method,
url: U)
-> AuthenticatedRequestBuilder<'a, Auth>
A wrapper for HTTP request.