Trait openstack::auth::base::AuthMethod
[−]
[src]
pub trait AuthMethod: Clone + Send { fn get_token(&self, client: &Client) -> Result<AuthToken, ApiError>; fn get_endpoint(&self,
service_type: &str,
endpoint_interface: Option<&str>,
region: Option<&str>,
session: &Session<Self>)
-> Result<Url, ApiError>; }
Trait for any authentication method.
Required Methods
fn get_token(&self, client: &Client) -> Result<AuthToken, ApiError>
Verify authentication and generate an auth token.
fn get_endpoint(&self,
service_type: &str,
endpoint_interface: Option<&str>,
region: Option<&str>,
session: &Session<Self>)
-> Result<Url, ApiError>
service_type: &str,
endpoint_interface: Option<&str>,
region: Option<&str>,
session: &Session<Self>)
-> Result<Url, ApiError>
Get a URL for the requested service.
Implementors
impl AuthMethod for NoAuth
impl AuthMethod for IdentityAuthMethod