pub struct RedisArgs {
pub host: String,
pub port: usize,
pub db: usize,
pub username: Option<String>,
pub password: Option<String>,
}Expand description
Struct for modeling the redis connection details argument each plugin receives.
Fields§
§host: StringHostname of the redis server to use.
port: usizePort of the redis server to use.
db: usizeLogical database in the redis instance to use.
username: Option<String>Username to use when authenticating with redis - if any.
password: Option<String>Password to use when authenticating with redis - if any.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RedisArgs
impl<'de> Deserialize<'de> for RedisArgs
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 RedisArgs
impl RefUnwindSafe for RedisArgs
impl Send for RedisArgs
impl Sync for RedisArgs
impl Unpin for RedisArgs
impl UnwindSafe for RedisArgs
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more