pub enum RoutingKey {
All,
Value(Option<String>),
}Expand description
Filter for events by routing key.
Routing keys allow partitioning events for parallel processing or filtering subscriptions to specific event streams.
Variants§
All
Match all events regardless of routing key
Value(Option<String>)
Match events with a specific routing key (or no key if None)
Trait Implementations§
Source§impl Clone for RoutingKey
impl Clone for RoutingKey
Source§fn clone(&self) -> RoutingKey
fn clone(&self) -> RoutingKey
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 RoutingKey
impl RefUnwindSafe for RoutingKey
impl Send for RoutingKey
impl Sync for RoutingKey
impl Unpin for RoutingKey
impl UnwindSafe for RoutingKey
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