pub struct Match {
pub path_params: HashMap<String, String>,
pub response: ResponseConfig,
}Expand description
The result of matching a request against the Router.
Fields§
§path_params: HashMap<String, String>Captured path parameters (e.g. {"id": "42"}).
response: ResponseConfigThe response that should be produced.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Match
impl RefUnwindSafe for Match
impl Send for Match
impl Sync for Match
impl Unpin for Match
impl UnsafeUnpin for Match
impl UnwindSafe for Match
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