pub fn password_only(password: &str) -> Self {
        Self {
            username: None,
            password: password.to_string(),
        }
    }
/// Uses password-only authentication.
/// This form just authenticates against the password set with requirepass (Redis server conf)
Uses password-only authentication.
This form just authenticates against the password set with requirepass (Redis server conf)
Uses password - only authentication . This form just authenticates against the password set with requirepass ( Redis server conf )
pub fn password_only(password: &str) -> Self {
        Self {
            username: None,
            password: password.to_string(),
        }
    }
pub fn password_only ( password : & str ) -> Self { Self { username : None , password : password . to_string ( ) , } }
Uses password-only authentication.
Uses password - only authentication .
password
&str
password
&str