pub enum TenantResolution {
Exempt,
Resolved(TenantContext),
Missing,
Unknown,
Suspended,
}Expand description
Resolution outcome produced by TenantPlugin::resolve.
Variants§
Exempt
Path is exempt from tenant enforcement.
Resolved(TenantContext)
Successfully resolved to an active TenantContext.
Missing
Request carried no valid tenant identifier (400 Bad Request).
Unknown
Extracted tenant ID was not found in the registry (404 Not Found).
Suspended
Extracted tenant ID is suspended (403 Forbidden).
Trait Implementations§
Source§impl Clone for TenantResolution
impl Clone for TenantResolution
Source§impl Debug for TenantResolution
impl Debug for TenantResolution
impl Eq for TenantResolution
Source§impl PartialEq for TenantResolution
impl PartialEq for TenantResolution
impl StructuralPartialEq for TenantResolution
Auto Trait Implementations§
impl Forget for TenantResolution
impl Freeze for TenantResolution
impl Move for TenantResolution
impl RefUnwindSafe for TenantResolution
impl Send for TenantResolutionwhere
RawVecInner: Send,
impl Sync for TenantResolutionwhere
RawVecInner: Sync,
impl Unpin for TenantResolution
impl UnsafeUnpin for TenantResolution
impl UnwindSafe for TenantResolutionwhere
RawVecInner: UnwindSafe,
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.