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 (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 RoutingKey
impl Debug for RoutingKey
Source§impl<'de> Deserialize<'de> for RoutingKey
impl<'de> Deserialize<'de> for RoutingKey
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 RoutingKey
impl RefUnwindSafe for RoutingKey
impl Send for RoutingKey
impl Sync for RoutingKey
impl Unpin for RoutingKey
impl UnsafeUnpin 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