pub struct BasicAuth { /* private fields */ }Available on crate feature
token-based-authentication only.Expand description
Basic authentication credentials for a Redis connection
Implementations§
Source§impl BasicAuth
impl BasicAuth
Sourcepub fn set_username(&mut self, username: String)
pub fn set_username(&mut self, username: String)
Set the username
Sourcepub fn set_password(&mut self, password: String)
pub fn set_password(&mut self, password: String)
Set the password
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BasicAuth
impl RefUnwindSafe for BasicAuth
impl Send for BasicAuth
impl Sync for BasicAuth
impl Unpin for BasicAuth
impl UnwindSafe for BasicAuth
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