pub fn new<S>(username: S, password: S) -> Self
    where
        S: Into<String>,
    {
        Credentials {
            username: username.into(),
            password: password.into(),
        }
    }
/// Constructs new `Credentials` with the given username and password.
Constructs new `Credentials` with the given username and password.
Constructs new ` Credentials ` with the given username and password .
pub fn new<S>(username: S, password: S) -> Self
    where
        S: Into<String>,
    {
        Credentials {
            username: username.into(),
            password: password.into(),
        }
    }
pub fn new < S > ( username : S , password : S ) -> Self where S : Into < String > , { Credentials { username : username . into ( ) , password : password . into ( ) , } }
Constructs new `Credentials` with the given username and password.
Constructs new ` Credentials ` with the given username and password .
username
S
password
S
username
S
password
S