pub struct RabbitMq {
pub username: Option<String>,
pub password: Option<String>,
pub ttl: Option<usize>,
pub length: Option<usize>,
pub hosts: Option<Vec<MqHost>>,
}
Expand description
Configurations for RabbitMQ.
Fields§
§username: Option<String>
Management user name. Default is guest.
password: Option<String>
Management password. Default is guest.
ttl: Option<usize>
Message TTL in milliseconds. Default is 3600000.
length: Option<usize>
Queue length. Default is 10000.
hosts: Option<Vec<MqHost>>
Available hosts. None or empty means unlimited.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RabbitMq
impl<'de> Deserialize<'de> for RabbitMq
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 RabbitMq
impl RefUnwindSafe for RabbitMq
impl Send for RabbitMq
impl Sync for RabbitMq
impl Unpin for RabbitMq
impl UnwindSafe for RabbitMq
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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