Struct embedded_redis::network::Credentials
source · pub struct Credentials { /* private fields */ }Expand description
Authentication credentials
Implementations§
source§impl Credentials
impl Credentials
sourcepub fn acl(username: &str, password: &str) -> Self
pub fn acl(username: &str, password: &str) -> Self
Uses ACL based authentication Required Redis version >= 6 + ACL enabled
sourcepub fn password_only(password: &str) -> Self
pub fn password_only(password: &str) -> Self
Uses password-only authentication. This form just authenticates against the password set with requirepass (Redis server conf)
Trait Implementations§
source§impl Clone for Credentials
impl Clone for Credentials
source§fn clone(&self) -> Credentials
fn clone(&self) -> Credentials
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl From<&Credentials> for AuthCommand
impl From<&Credentials> for AuthCommand
source§fn from(credentials: &Credentials) -> AuthCommand
fn from(credentials: &Credentials) -> AuthCommand
Converts to this type from the input type.