pub struct SubdomainStrategy { /* private fields */ }Expand description
Extracts tenant slug from a single-level subdomain relative to a base domain.
Created by subdomain(). Produces TenantId::Slug.
Multi-level subdomains (e.g., a.b.base.com) and bare base-domain
requests are rejected with 400 Bad Request.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SubdomainStrategy
impl RefUnwindSafe for SubdomainStrategy
impl Send for SubdomainStrategy
impl Sync for SubdomainStrategy
impl Unpin for SubdomainStrategy
impl UnsafeUnpin for SubdomainStrategy
impl UnwindSafe for SubdomainStrategy
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