pub enum RedisConfigs {
Unified(RedisConfig),
Individual {
project_configs: Box<RedisConfig>,
cardinality: Box<RedisConfig>,
quotas: Box<RedisConfig>,
},
}Expand description
Configurations for the various Redis pools used by Relay.
Variants§
Unified(RedisConfig)
All pools should be configured the same way.
Individual
Individual configurations for each pool.
Fields
§
project_configs: Box<RedisConfig>Configuration for the project_configs pool.
§
cardinality: Box<RedisConfig>Configuration for the cardinality pool.
§
quotas: Box<RedisConfig>Configuration for the quotas pool.
Trait Implementations§
Source§impl Clone for RedisConfigs
impl Clone for RedisConfigs
Source§fn clone(&self) -> RedisConfigs
fn clone(&self) -> RedisConfigs
Returns a duplicate 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 RedisConfigs
impl Debug for RedisConfigs
Source§impl<'de> Deserialize<'de> for RedisConfigs
impl<'de> Deserialize<'de> for RedisConfigs
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 PartialEq for RedisConfigs
impl PartialEq for RedisConfigs
Source§impl Serialize for RedisConfigs
impl Serialize for RedisConfigs
impl Eq for RedisConfigs
impl StructuralPartialEq for RedisConfigs
Auto Trait Implementations§
impl Freeze for RedisConfigs
impl RefUnwindSafe for RedisConfigs
impl Send for RedisConfigs
impl Sync for RedisConfigs
impl Unpin for RedisConfigs
impl UnwindSafe for RedisConfigs
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.