pub struct QueueConfig {
pub provider: MqProvider,
pub brokers: Vec<String>,
pub group_id: Option<String>,
pub username: Option<String>,
pub password: Option<String>,
}Fields§
§provider: MqProvider§brokers: Vec<String>§group_id: Option<String>§username: Option<String>§password: Option<String>Implementations§
Source§impl QueueConfig
impl QueueConfig
pub fn new() -> Self
pub fn with_provider(self, provider: MqProvider) -> Self
pub fn with_brokers(self, brokers: Vec<String>) -> Self
pub fn with_group(self, group: impl Into<String>) -> Self
pub fn with_auth( self, username: impl Into<String>, password: impl Into<String>, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueueConfig
impl RefUnwindSafe for QueueConfig
impl Send for QueueConfig
impl Sync for QueueConfig
impl Unpin for QueueConfig
impl UnsafeUnpin for QueueConfig
impl UnwindSafe for QueueConfig
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