pub struct Password { /* private fields */ }
Expand description
Password authentication using Identity API V3.
Implementations
sourceimpl Password
impl Password
sourcepub fn new<U, S1, S2, S3>(
auth_url: U,
user_name: S1,
password: S2,
user_domain_name: S3
) -> Result<Password>where
U: IntoUrl,
S1: Into<String>,
S2: Into<String>,
S3: Into<String>,
pub fn new<U, S1, S2, S3>(
auth_url: U,
user_name: S1,
password: S2,
user_domain_name: S3
) -> Result<Password>where
U: IntoUrl,
S1: Into<String>,
S2: Into<String>,
S3: Into<String>,
Create a password authentication against the given Identity service.
sourcepub fn new_with_client<U, S1, S2, S3>(
auth_url: U,
client: Client,
user_name: S1,
password: S2,
user_domain_name: S3
) -> Result<Password>where
U: IntoUrl,
S1: Into<String>,
S2: Into<String>,
S3: Into<String>,
pub fn new_with_client<U, S1, S2, S3>(
auth_url: U,
client: Client,
user_name: S1,
password: S2,
user_domain_name: S3
) -> Result<Password>where
U: IntoUrl,
S1: Into<String>,
S2: Into<String>,
S3: Into<String>,
Create a password authentication against the given Identity service.
sourcepub fn set_region<S>(&mut self, region: S)where
S: Into<String>,
pub fn set_region<S>(&mut self, region: S)where
S: Into<String>,
Set a region for this authentication methjod.
sourcepub fn set_project_scope<S1, S2>(
&mut self,
project_name: S1,
project_domain_name: S2
)where
S1: Into<String>,
S2: Into<String>,
pub fn set_project_scope<S1, S2>(
&mut self,
project_name: S1,
project_domain_name: S2
)where
S1: Into<String>,
S2: Into<String>,
Scope authentication to the given project.
This is required in the most cases.
sourcepub fn with_region<S>(self, region: S) -> Selfwhere
S: Into<String>,
pub fn with_region<S>(self, region: S) -> Selfwhere
S: Into<String>,
Set a region for this authentication methjod.
Trait Implementations
sourceimpl AuthMethod for Password
impl AuthMethod for Password
sourcefn request(&self, method: Method, url: Url) -> Result<RequestBuilder>
fn request(&self, method: Method, url: Url) -> Result<RequestBuilder>
Create an authenticated request.
sourcefn get_endpoint(
&self,
service_type: String,
endpoint_interface: Option<String>
) -> Result<Url>
fn get_endpoint(
&self,
service_type: String,
endpoint_interface: Option<String>
) -> Result<Url>
Get a URL for the requested service.
sourcefn default_endpoint_interface(&self) -> String
fn default_endpoint_interface(&self) -> String
Default endpoint interface that is used when none is provided.
Auto Trait Implementations
impl !RefUnwindSafe for Password
impl Send for Password
impl !Sync for Password
impl Unpin for Password
impl !UnwindSafe for Password
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more