pub struct Redis {
pub url: String,
pub max_size: u32,
pub min_idle: u32,
pub test_on_check_out: bool,
pub max_lifetime: u64,
pub idle_timeout: u64,
pub connection_timeout: u64,
pub retry_connection: bool,
pub reaper_rate: u64,
}Fields§
§url: String§max_size: u32§min_idle: u32§test_on_check_out: bool§max_lifetime: u64§idle_timeout: u64§connection_timeout: u64§retry_connection: bool§reaper_rate: u64Trait Implementations§
Source§impl<'de> Deserialize<'de> for Redis
impl<'de> Deserialize<'de> for Redis
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
Auto Trait Implementations§
impl Freeze for Redis
impl RefUnwindSafe for Redis
impl Send for Redis
impl Sync for Redis
impl Unpin for Redis
impl UnwindSafe for Redis
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