pub struct MessageQueueConfig {
pub queue_type: MessageQueueType,
pub endpoints: Vec<String>,
pub auth: Option<QueueAuth>,
pub consumer_group: Option<String>,
pub retention_secs: u64,
pub max_message_size: usize,
pub compression: bool,
}Expand description
Message queue configuration.
Fields§
§queue_type: MessageQueueTypeQueue type.
endpoints: Vec<String>Connection endpoints.
auth: Option<QueueAuth>Authentication configuration.
consumer_group: Option<String>Consumer group ID.
retention_secs: u64Message retention period in seconds.
max_message_size: usizeMaximum message size in bytes.
compression: boolEnable message compression.
Trait Implementations§
Source§impl Clone for MessageQueueConfig
impl Clone for MessageQueueConfig
Source§fn clone(&self) -> MessageQueueConfig
fn clone(&self) -> MessageQueueConfig
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 MessageQueueConfig
impl Debug for MessageQueueConfig
Source§impl<'de> Deserialize<'de> for MessageQueueConfig
impl<'de> Deserialize<'de> for MessageQueueConfig
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 MessageQueueConfig
impl RefUnwindSafe for MessageQueueConfig
impl Send for MessageQueueConfig
impl Sync for MessageQueueConfig
impl Unpin for MessageQueueConfig
impl UnsafeUnpin for MessageQueueConfig
impl UnwindSafe for MessageQueueConfig
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