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.
Auto Trait Implementations§
impl RefUnwindSafe for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Unpin for Credentials
impl UnwindSafe for Credentials
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more