Struct deadpool_redis::RedisConnectionInfo
source · pub struct RedisConnectionInfo {
pub db: i64,
pub username: Option<String>,
pub password: Option<String>,
}
Expand description
This is a 1:1 copy of the redis::RedisConnectionInfo
struct.
This is duplicated here in order to add support for the
serde::Deserialize
trait which is required for the serde
support.
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
source§impl<'de> Deserialize<'de> for RedisConnectionInfo
impl<'de> Deserialize<'de> for RedisConnectionInfo
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<RedisConnectionInfo> for RedisConnectionInfo
impl From<RedisConnectionInfo> for RedisConnectionInfo
source§fn from(info: RedisConnectionInfo) -> Self
fn from(info: RedisConnectionInfo) -> Self
Converts to this type from the input type.
source§impl From<RedisConnectionInfo> for RedisConnectionInfo
impl From<RedisConnectionInfo> for RedisConnectionInfo
source§fn from(info: RedisConnectionInfo) -> Self
fn from(info: RedisConnectionInfo) -> Self
Converts to this type from the input type.