Struct rincon_client::auth::types::AuthenticationRequest
[−]
[src]
pub struct AuthenticationRequest { /* fields omitted */ }
This structs holds the properties necessary to authenticate a user.
Methods
impl AuthenticationRequest
[src]
pub fn new<N, P>(username: N, password: P) -> Self where
N: Into<String>,
P: Into<String>,
[src]
N: Into<String>,
P: Into<String>,
Constructs a new instance of an AuthenticationRequest
containing the
given username and password.
pub fn username(&self) -> &str
[src]
Returns the username in this AuthenticationRequest
.
pub fn password(&self) -> &str
[src]
Returns the password in this AuthenticationRequest
.
Trait Implementations
impl Debug for AuthenticationRequest
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for AuthenticationRequest
[src]
fn clone(&self) -> AuthenticationRequest
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for AuthenticationRequest
[src]
fn eq(&self, __arg_0: &AuthenticationRequest) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AuthenticationRequest) -> bool
[src]
This method tests for !=
.