#[non_exhaustive]pub enum TenantContextError {
InvalidTenantId(String),
EmptyMembership,
TenantNotInMembership(String),
}Expand description
Invalid or unauthorized tenant identity state.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidTenantId(String)
Tenant identifiers must use a bounded, unambiguous character set.
EmptyMembership
An authenticated identity must belong to at least one tenant.
TenantNotInMembership(String)
The selected tenant is not present in the authenticated identity claims.
Trait Implementations§
Source§impl Clone for TenantContextError
impl Clone for TenantContextError
Source§impl Debug for TenantContextError
impl Debug for TenantContextError
Source§impl Display for TenantContextError
impl Display for TenantContextError
impl Eq for TenantContextError
Source§impl Error for TenantContextError
impl Error for TenantContextError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for TenantContextError
impl PartialEq for TenantContextError
impl StructuralPartialEq for TenantContextError
Auto Trait Implementations§
impl Freeze for TenantContextError
impl RefUnwindSafe for TenantContextError
impl Send for TenantContextError
impl Sync for TenantContextError
impl Unpin for TenantContextError
impl UnsafeUnpin for TenantContextError
impl UnwindSafe for TenantContextError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP