pub struct RedisConnectionInfo {
pub db: i64,
pub username: Option<String>,
pub password: Option<String>,
pub protocol: ProtocolVersion,
}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: i64The 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.
protocol: ProtocolVersionVersion of the protocol to use.
Trait Implementations§
Source§impl Clone for RedisConnectionInfo
impl Clone for RedisConnectionInfo
Source§fn clone(&self) -> RedisConnectionInfo
fn clone(&self) -> RedisConnectionInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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
Available on crate feature serde only.
impl<'de> Deserialize<'de> for RedisConnectionInfo
Available on crate feature
serde only.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.
Auto Trait Implementations§
impl Freeze for RedisConnectionInfo
impl RefUnwindSafe for RedisConnectionInfo
impl Send for RedisConnectionInfo
impl Sync for RedisConnectionInfo
impl Unpin for RedisConnectionInfo
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<D> DeserializeWith<JsonFormat> for Dwhere
D: DeserializeOwned,
impl<D> DeserializeWith<JsonFormat> for Dwhere
D: DeserializeOwned,
Source§fn deserialize_with(body: ResponseBody) -> Result<D, Error>
fn deserialize_with(body: ResponseBody) -> Result<D, Error>
Deserialize the response body using the specified format. Read more