pub struct RedisConfig {
pub host: String,
pub port: u16,
}Expand description
Global Redis configuration defaults.
This struct holds component-level defaults that can be set via YAML config and applied to endpoint configurations when specific values aren’t provided.
Fields§
§host: String§port: u16Implementations§
Trait Implementations§
Source§impl Clone for RedisConfig
impl Clone for RedisConfig
Source§fn clone(&self) -> RedisConfig
fn clone(&self) -> RedisConfig
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 RedisConfig
impl Debug for RedisConfig
Source§impl Default for RedisConfig
impl Default for RedisConfig
Source§impl<'de> Deserialize<'de> for RedisConfigwhere
RedisConfig: Default,
impl<'de> Deserialize<'de> for RedisConfigwhere
RedisConfig: Default,
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 RedisConfig
impl PartialEq for RedisConfig
Source§fn eq(&self, other: &RedisConfig) -> bool
fn eq(&self, other: &RedisConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RedisConfig
Auto Trait Implementations§
impl Freeze for RedisConfig
impl RefUnwindSafe for RedisConfig
impl Send for RedisConfig
impl Sync for RedisConfig
impl Unpin for RedisConfig
impl UnsafeUnpin 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