pub struct RedisConnectionInfo {
pub db: i64,
pub username: Option<String>,
pub password: Option<String>,
}
Expand description
Redis specific/connection independent information used to establish a connection to redis.
Fields§
§db: i64
The database number to use. This is usually 0
.
username: Option<String>
Optionally a username that should be used for connection.
password: Option<String>
Optionally a password that should be used for connection.
Trait Implementations§
source§impl Clone for RedisConnectionInfo
impl Clone for RedisConnectionInfo
source§fn clone(&self) -> RedisConnectionInfo
fn clone(&self) -> RedisConnectionInfo
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 Debug for RedisConnectionInfo
impl Debug for RedisConnectionInfo
source§impl Default for RedisConnectionInfo
impl Default for RedisConnectionInfo
source§fn default() -> RedisConnectionInfo
fn default() -> RedisConnectionInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RedisConnectionInfo
impl RefUnwindSafe for RedisConnectionInfo
impl Send for RedisConnectionInfo
impl Sync for RedisConnectionInfo
impl Unpin for RedisConnectionInfo
impl UnwindSafe for RedisConnectionInfo
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)