Struct openstack::auth::identity::Identity
[−]
[src]
pub struct Identity { /* fields omitted */ }
Authentication method factory using Identity API V3.
Methods
impl Identity
[src]
fn get_auth_url(&self) -> &Url
Get a reference to the auth URL.
fn new<U>(auth_url: U) -> Result<Identity, ParseError> where U: IntoUrl
Create a password authentication against the given Identity service.
fn with_user<S1, S2, S3>(self,
user_name: S1,
password: S2,
domain_name: S3)
-> Identity where S1: Into<String>, S2: Into<String>, S3: Into<String>
user_name: S1,
password: S2,
domain_name: S3)
-> Identity where S1: Into<String>, S2: Into<String>, S3: Into<String>
Add authentication based on user name and password.
fn with_project_scope<S1, S2>(self,
project_name: S1,
domain_name: S2)
-> Identity where S1: Into<String>, S2: Into<String>
project_name: S1,
domain_name: S2)
-> Identity where S1: Into<String>, S2: Into<String>
Request a token scoped to the given project.
fn create(self) -> Result<IdentityAuthMethod, ApiError>
Create an authentication method based on provided information.
fn from_env() -> Result<IdentityAuthMethod, ApiError>
Create an authentication method from environment variables.
Trait Implementations
impl Clone for Identity
[src]
fn clone(&self) -> Identity
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more