pub struct Route {
pub regex: Regex,
pub fields: HashSet<String>,
pub resource: Box<dyn RouteResource>,
pub suffix: Option<String>,
}Expand description
Route class for registration of reply message handlers
This class represents a registered route internally to the Router. The properties are created by using the compile route utility method
Fields§
§regex: RegexCompiled URI template regex
fields: HashSet<String>Field names for matches in regex
resource: Box<dyn RouteResource>The handler for this route (stored as type-erased trait object)
suffix: Option<String>A suffix to be applied to the handler method
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Route
impl !UnwindSafe for Route
impl Freeze for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnsafeUnpin for Route
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