pub struct RoutingRule {
pub pattern: String,
pub queue: String,
pub routing_key: Option<String>,
pub exchange: Option<String>,
}Expand description
Routing rule for directing messages to queues
Fields§
§pattern: StringTask name pattern (supports prefix matching with ‘*’)
queue: StringTarget queue name
routing_key: Option<String>Optional routing key
exchange: Option<String>Optional exchange name
Implementations§
Source§impl RoutingRule
impl RoutingRule
Trait Implementations§
Source§impl Clone for RoutingRule
impl Clone for RoutingRule
Source§fn clone(&self) -> RoutingRule
fn clone(&self) -> RoutingRule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RoutingRule
impl RefUnwindSafe for RoutingRule
impl Send for RoutingRule
impl Sync for RoutingRule
impl Unpin for RoutingRule
impl UnwindSafe for RoutingRule
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