pub enum UserError {
Show 13 variants
CliOnly,
BadLabel,
BadIdentity,
IdentityTaken,
NoUser,
Deactivated,
NoTenant,
Closing,
BadRoles,
OverCap,
BadCap,
NoMembership,
Registry(TenantError),
}Expand description
Why a call about users or memberships was refused or failed.
Variants§
CliOnly
Only the command line may do this.
BadLabel
The label breaks the naming rule a tenant’s name follows.
BadIdentity
The issuer or subject is not one a provider can give
(Identity::good).
IdentityTaken
An active user has the identity.
NoUser
No user has the id.
Deactivated
The user is deactivated.
NoTenant
No tenant has the id.
Closing
The tenant is being removed.
BadRoles
Roles a membership of its kind cannot hold: an operator membership
holds operator alone, a tenant membership one or more of the
others.
OverCap
A role named is outside the tenant’s role cap.
BadCap
Roles that cannot be a tenant’s role cap: a cap is one or more of the roles a tenant membership may hold.
NoMembership
The user has no such membership.
Registry(TenantError)
The registry failed, or the audit record could not be written.
Trait Implementations§
impl Copy for UserError
impl Eq for UserError
Source§impl From<TenantError> for UserError
impl From<TenantError> for UserError
Source§fn from(e: TenantError) -> UserError
fn from(e: TenantError) -> UserError
Source§impl From<UserError> for CommandError
impl From<UserError> for CommandError
Source§fn from(e: UserError) -> CommandError
fn from(e: UserError) -> CommandError
A registry failure is the error every other command gives for it.
impl StructuralPartialEq for UserError
Auto Trait Implementations§
impl Forget for UserError
impl Freeze for UserError
impl Move for UserError
impl RefUnwindSafe for UserError
impl Send for UserError
impl Sync for UserError
impl Unpin for UserError
impl UnsafeUnpin for UserError
impl UnwindSafe for UserError
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
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
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more