pub struct RoutingRule {
pub match_type: MatchType,
pub pattern: String,
pub handler: Arc<dyn MessageHandler>,
pub transformers: Vec<Box<dyn MessageTransformer>>,
pub auth_required: Option<bool>,
}Expand description
A single routing rule that maps a pattern to a handler.
Fields§
§match_type: MatchType§pattern: String§handler: Arc<dyn MessageHandler>§transformers: Vec<Box<dyn MessageTransformer>>§auth_required: Option<bool>Implementations§
Auto Trait Implementations§
impl Freeze for RoutingRule
impl !RefUnwindSafe for RoutingRule
impl Send for RoutingRule
impl Sync for RoutingRule
impl Unpin for RoutingRule
impl UnsafeUnpin 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