Struct generic_db_observer::redis::RedisConfig
source · pub struct RedisConfig {
pub redis_host: String,
pub redis_password: SecretString,
pub redis_set_name: String,
}
Expand description
Configuration to access and authenticate to the Redis message broker.
Fields§
§redis_host: String
Host under which the Redis install can be accessed.
redis_password: SecretString
Password to authenticate with redis.
redis_set_name: String
The name of the set that contains the data that is being tracked.
Implementations§
source§impl RedisConfig
impl RedisConfig
sourcepub fn redis_auth_address(&self) -> SecretString
pub fn redis_auth_address(&self) -> SecretString
Create a redis address with authorization info, based on the configuration information.
Trait Implementations§
source§impl Clone for RedisConfig
impl Clone for RedisConfig
source§fn clone(&self) -> RedisConfig
fn clone(&self) -> RedisConfig
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 moreAuto Trait Implementations§
impl Freeze for RedisConfig
impl RefUnwindSafe for RedisConfig
impl Send for RedisConfig
impl Sync for RedisConfig
impl Unpin for RedisConfig
impl UnwindSafe for RedisConfig
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