pub struct PathParamStrategy { /* private fields */ }Expand description
Extracts tenant slug from a named axum path parameter.
Created by path_param(). Produces TenantId::Slug.
This strategy requires .route_layer() instead of .layer() because
axum path parameters are only available after route matching.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathParamStrategy
impl RefUnwindSafe for PathParamStrategy
impl Send for PathParamStrategy
impl Sync for PathParamStrategy
impl Unpin for PathParamStrategy
impl UnsafeUnpin for PathParamStrategy
impl UnwindSafe for PathParamStrategy
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