pub struct PathPrefixStrategy { /* private fields */ }Expand description
Extracts tenant slug from a path prefix and rewrites the URI.
Created by path_prefix(). Produces TenantId::Slug.
Strips the prefix and tenant slug from the URI before the request reaches
handlers, preserving the query string. For example, with prefix /org,
a request to /org/acme/settings?tab=billing becomes /settings?tab=billing
and the slug acme is extracted.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathPrefixStrategy
impl RefUnwindSafe for PathPrefixStrategy
impl Send for PathPrefixStrategy
impl Sync for PathPrefixStrategy
impl Unpin for PathPrefixStrategy
impl UnsafeUnpin for PathPrefixStrategy
impl UnwindSafe for PathPrefixStrategy
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