pub struct RedisAttributes {
pub host: String,
pub port: i32,
pub database: i32,
pub username: String,
pub password: String,
pub key_name: String,
pub max_retry: i32,
pub retry_interval_sec: i32,
pub tls: Option<bool>,
}Expand description
Configuration for delivering stream batches to a Redis instance.
Fields§
§host: StringRedis host.
port: i32Redis port.
database: i32Redis logical database index.
username: StringUsername used to authenticate.
password: StringPassword used to authenticate.
key_name: StringRedis key that receives written payloads.
max_retry: i32Maximum number of retry attempts for a failed write.
retry_interval_sec: i32Seconds to wait between retry attempts.
tls: Option<bool>Whether to connect over TLS.
Trait Implementations§
Source§impl Clone for RedisAttributes
impl Clone for RedisAttributes
Source§fn clone(&self) -> RedisAttributes
fn clone(&self) -> RedisAttributes
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 RedisAttributes
impl Debug for RedisAttributes
Source§impl<'de> Deserialize<'de> for RedisAttributes
impl<'de> Deserialize<'de> for RedisAttributes
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 RedisAttributes
impl RefUnwindSafe for RedisAttributes
impl Send for RedisAttributes
impl Sync for RedisAttributes
impl Unpin for RedisAttributes
impl UnsafeUnpin for RedisAttributes
impl UnwindSafe for RedisAttributes
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