pub struct PathParams { /* private fields */ }Expand description
Named path-segment values extracted from a matched route pattern.
Given the pattern /users/:id/posts/:post_id matched against
/users/42/posts/7, params.get("id") returns Some("42") and
params.get("post_id") returns Some("7").
Wildcard segments (*name) capture everything after the prefix:
/files/*path matched against /files/a/b/c gives path = "a/b/c".
Implementations§
Auto Trait Implementations§
impl Freeze for PathParams
impl RefUnwindSafe for PathParams
impl Send for PathParams
impl Sync for PathParams
impl Unpin for PathParams
impl UnsafeUnpin for PathParams
impl UnwindSafe for PathParams
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