pub struct RouteMatch {
pub params: HashMap<String, String>,
pub specificity: usize,
pub consumed_segments: usize,
}Expand description
Result of matching a request path against a route path template.
Fields§
§params: HashMap<String, String>Bound parameter values from the path.
specificity: usizeHow many literal (non-param) segments matched exactly.
consumed_segments: usizeHow many request path segments were consumed by the match. Used by nested routes to compute the child route base.
Trait Implementations§
Source§impl Clone for RouteMatch
impl Clone for RouteMatch
Auto Trait Implementations§
impl Freeze for RouteMatch
impl RefUnwindSafe for RouteMatch
impl Send for RouteMatch
impl Sync for RouteMatch
impl Unpin for RouteMatch
impl UnsafeUnpin for RouteMatch
impl UnwindSafe for RouteMatch
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