pub fn new<N, P>(username: N, password: P) -> Self
    where
        N: Into<String>,
        P: Into<String>,
    {
        AuthenticationRequest {
            username: username.into(),
            password: password.into(),
        }
    }
/// Constructs a new instance of an `AuthenticationRequest` containing the
/// given username and password.
Constructs a new instance of an `AuthenticationRequest` containing the
given username and password.
Constructs a new instance of an ` AuthenticationRequest ` containing the given username and password .
pub fn new<N, P>(username: N, password: P) -> Self
    where
        N: Into<String>,
        P: Into<String>,
    {
        AuthenticationRequest {
            username: username.into(),
            password: password.into(),
        }
    }
pub fn new < N , P > ( username : N , password : P ) -> Self where N : Into < String > , P : Into < String > , { AuthenticationRequest { username : username . into ( ) , password : password . into ( ) , } }
Constructs a new instance of an `AuthenticationRequest` containing the
given username and password.
Constructs a new instance of an ` AuthenticationRequest ` containing the given username and password .
username
N
password
P
username
N
password
P