pub struct PathParams(/* private fields */);Expand description
A by-name view of the request’s captured path parameters. Where Path<T>
binds positionally (the leaf-most segment, or a root→leaf tuple), PathParams
reads a SPECIFIC mount param BY NAME — the accessor a DI factory needs, since
a factory resolves each argument through FromRequest and cannot borrow
&RequestCtx to call RequestCtx::param. The membership-verifying tenancy
guard uses it to read the tenant fk club_id under /clubs/{club_id} even
when a leaf {id} follows (issues #78/#79). Rejects a task context (JC1003),
like every other HTTP-coupled extractor.
Implementations§
Trait Implementations§
Source§impl FromRequest for PathParams
impl FromRequest for PathParams
async fn from_request(ctx: &mut RequestCtx) -> Result<Self>
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