pub enum TenantSource {
Header,
Subdomain,
PathPrefix,
Default,
}Expand description
Strategy used to extract a raw tenant identifier from an incoming request.
Variants§
Header
Extracted from the configured HTTP request header (default x-tenant-id).
Subdomain
Extracted from the leading subdomain label before base_domain.
PathPrefix
Extracted from a leading path prefix segment (/<prefix>/<tenant>/...).
Default
Supplied by the configured fallback default tenant.
Trait Implementations§
Source§impl Clone for TenantSource
impl Clone for TenantSource
impl Copy for TenantSource
Source§impl Debug for TenantSource
impl Debug for TenantSource
impl Eq for TenantSource
Source§impl PartialEq for TenantSource
impl PartialEq for TenantSource
impl StructuralPartialEq for TenantSource
Auto Trait Implementations§
impl Forget for TenantSource
impl Freeze for TenantSource
impl Move for TenantSource
impl RefUnwindSafe for TenantSource
impl Send for TenantSource
impl Sync for TenantSource
impl Unpin for TenantSource
impl UnsafeUnpin for TenantSource
impl UnwindSafe for TenantSource
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.