Skip to main content

AuthErrorCode

Enum AuthErrorCode 

Source
#[repr(i32)]
pub enum AuthErrorCode {
Show 39 variants AUTH_UNSPECIFIED = 0, AUTH_USERNAME_INVALID = 1, AUTH_USERNAME_TAKEN = 2, AUTH_USERNAME_COOLDOWN = 3, AUTH_USERNAME_FEATURE_LOCKED = 4, AUTH_USERNAME_RESERVED = 5, AUTH_INVALID_REQUEST = 6, AUTH_AUTHENTICATION_REQUIRED = 7, AUTH_SESSION_KIND_NOT_ALLOWED = 8, AUTH_WALLET_LOGIN_FAILED = 9, AUTH_RESOURCE_NOT_FOUND = 10, AUTH_SUBACCOUNT_ACCESS_DENIED = 11, AUTH_API_KEY_ACCESS_DENIED = 12, AUTH_API_KEY_INVALID_STATUS_TRANSITION = 14, AUTH_POLICY_INVALID = 15, AUTH_SMART_ACCOUNT_ALREADY_LINKED = 16, AUTH_INVITE_ACCESS_DENIED = 17, AUTH_INVITE_INVALID_STATE = 18, AUTH_MFA_DISABLED = 19, AUTH_MFA_NOT_ENROLLED = 20, AUTH_MFA_SESSION_INVALID = 21, AUTH_MFA_CHALLENGE_NOT_FOUND = 22, AUTH_MFA_CHALLENGE_INVALID = 23, AUTH_MFA_CHALLENGE_LOCKED = 24, AUTH_MFA_OTP_INVALID = 25, AUTH_MFA_RECOVERY_INVALID = 26, AUTH_MFA_PASSKEY_NOT_AVAILABLE = 27, AUTH_MFA_PASSKEY_CREDENTIAL_INVALID = 28, AUTH_MFA_PASSKEY_VERIFY_FAILED = 29, AUTH_MFA_ENROLLMENT_BINDING_INVALID = 30, AUTH_STEP_UP_REQUIRED = 31, AUTH_STEP_UP_PROOF_UNAVAILABLE = 32, AUTH_STEP_UP_ALREADY_CLAIMED = 33, AUTH_POLICY_IN_USE = 34, AUTH_POLICY_LOCKED = 35, AUTH_POLICY_SCOPE_MISMATCH = 36, AUTH_REVISION_CONFLICT = 37, AUTH_MFA_ELEVATION_REQUIRED = 38, AUTH_MFA_LAST_FACTOR_REQUIRED = 39,
}
Expand description

High-level error codes for authentication and account-domain failures.

Variants§

§

AUTH_UNSPECIFIED = 0

No auth error code specified.

§

AUTH_USERNAME_INVALID = 1

Username format or characters are invalid.

§

AUTH_USERNAME_TAKEN = 2

Username is already used by another account.

§

AUTH_USERNAME_COOLDOWN = 3

Username was changed too recently.

§

AUTH_USERNAME_FEATURE_LOCKED = 4

Account is not currently eligible to claim or change a username.

§

AUTH_USERNAME_RESERVED = 5

Username is reserved and cannot be claimed by this account.

§

AUTH_INVALID_REQUEST = 6

Request is malformed or missing required input.

§

AUTH_AUTHENTICATION_REQUIRED = 7

Authentication is required for this operation.

§

AUTH_SESSION_KIND_NOT_ALLOWED = 8

Presented session type is not allowed for this operation.

§

AUTH_WALLET_LOGIN_FAILED = 9

Wallet login failed because the nonce or signature could not be verified.

§

AUTH_RESOURCE_NOT_FOUND = 10

Requested resource was not found.

§

AUTH_SUBACCOUNT_ACCESS_DENIED = 11

Caller does not have access to the requested sub-account.

§

AUTH_API_KEY_ACCESS_DENIED = 12

Caller does not have access to the requested API key.

§

AUTH_API_KEY_INVALID_STATUS_TRANSITION = 14

Requested API key status transition is not allowed.

§

AUTH_POLICY_INVALID = 15

Policy definition or binding is invalid.

§

AUTH_SMART_ACCOUNT_ALREADY_LINKED = 16

Smart-account address is already linked to another account.

§

AUTH_INVITE_ACCESS_DENIED = 17

Caller does not have access to the requested invite.

§

AUTH_INVITE_INVALID_STATE = 18

Invite cannot be used in its current state.

§

AUTH_MFA_DISABLED = 19

MFA is not available for this account.

§

AUTH_MFA_NOT_ENROLLED = 20

Required MFA factor is not enrolled.

§

AUTH_MFA_SESSION_INVALID = 21

MFA session is missing, expired, or invalid.

§

AUTH_MFA_CHALLENGE_NOT_FOUND = 22

MFA challenge was not found.

§

AUTH_MFA_CHALLENGE_INVALID = 23

MFA challenge payload is invalid.

§

AUTH_MFA_CHALLENGE_LOCKED = 24

MFA challenge is locked after too many failed attempts.

§

AUTH_MFA_OTP_INVALID = 25

One-time password is invalid.

§

AUTH_MFA_RECOVERY_INVALID = 26

Recovery code is invalid.

§

AUTH_MFA_PASSKEY_NOT_AVAILABLE = 27

Passkey verification is not available for this challenge.

§

AUTH_MFA_PASSKEY_CREDENTIAL_INVALID = 28

Passkey credential is invalid for this account or challenge.

§

AUTH_MFA_PASSKEY_VERIFY_FAILED = 29

Passkey verification failed.

§

AUTH_MFA_ENROLLMENT_BINDING_INVALID = 30

MFA enrollment binding is invalid or expired.

§

AUTH_STEP_UP_REQUIRED = 31

A fresh step-up proof is required for this protected operation.

§

AUTH_STEP_UP_PROOF_UNAVAILABLE = 32

A requested step-up proof is unavailable.

§

AUTH_STEP_UP_ALREADY_CLAIMED = 33

The step-up proof has already been claimed.

§

AUTH_POLICY_IN_USE = 34

The requested policy cannot be removed because it is still in use.

§

AUTH_POLICY_LOCKED = 35

The requested policy is locked against this mutation.

§

AUTH_POLICY_SCOPE_MISMATCH = 36

The requested policy does not belong to the target account scope.

§

AUTH_REVISION_CONFLICT = 37

The resource changed after the caller read it.

§

AUTH_MFA_ELEVATION_REQUIRED = 38

A recently MFA-elevated interactive session is required.

§

AUTH_MFA_LAST_FACTOR_REQUIRED = 39

At least one active MFA factor must remain enrolled.

Implementations§

Source§

impl AuthErrorCode

Source

pub const AuthUnspecified: Self = Self::AUTH_UNSPECIFIED

Idiomatic alias for Self::AUTH_UNSPECIFIED; Debug prints the variant name.

Source

pub const AuthUsernameInvalid: Self = Self::AUTH_USERNAME_INVALID

Idiomatic alias for Self::AUTH_USERNAME_INVALID; Debug prints the variant name.

Source

pub const AuthUsernameTaken: Self = Self::AUTH_USERNAME_TAKEN

Idiomatic alias for Self::AUTH_USERNAME_TAKEN; Debug prints the variant name.

Source

pub const AuthUsernameCooldown: Self = Self::AUTH_USERNAME_COOLDOWN

Idiomatic alias for Self::AUTH_USERNAME_COOLDOWN; Debug prints the variant name.

Source

pub const AuthUsernameFeatureLocked: Self = Self::AUTH_USERNAME_FEATURE_LOCKED

Idiomatic alias for Self::AUTH_USERNAME_FEATURE_LOCKED; Debug prints the variant name.

Source

pub const AuthUsernameReserved: Self = Self::AUTH_USERNAME_RESERVED

Idiomatic alias for Self::AUTH_USERNAME_RESERVED; Debug prints the variant name.

Source

pub const AuthInvalidRequest: Self = Self::AUTH_INVALID_REQUEST

Idiomatic alias for Self::AUTH_INVALID_REQUEST; Debug prints the variant name.

Source

pub const AuthAuthenticationRequired: Self = Self::AUTH_AUTHENTICATION_REQUIRED

Idiomatic alias for Self::AUTH_AUTHENTICATION_REQUIRED; Debug prints the variant name.

Source

pub const AuthSessionKindNotAllowed: Self = Self::AUTH_SESSION_KIND_NOT_ALLOWED

Idiomatic alias for Self::AUTH_SESSION_KIND_NOT_ALLOWED; Debug prints the variant name.

Source

pub const AuthWalletLoginFailed: Self = Self::AUTH_WALLET_LOGIN_FAILED

Idiomatic alias for Self::AUTH_WALLET_LOGIN_FAILED; Debug prints the variant name.

Source

pub const AuthResourceNotFound: Self = Self::AUTH_RESOURCE_NOT_FOUND

Idiomatic alias for Self::AUTH_RESOURCE_NOT_FOUND; Debug prints the variant name.

Source

pub const AuthSubaccountAccessDenied: Self = Self::AUTH_SUBACCOUNT_ACCESS_DENIED

Idiomatic alias for Self::AUTH_SUBACCOUNT_ACCESS_DENIED; Debug prints the variant name.

Source

pub const AuthApiKeyAccessDenied: Self = Self::AUTH_API_KEY_ACCESS_DENIED

Idiomatic alias for Self::AUTH_API_KEY_ACCESS_DENIED; Debug prints the variant name.

Source

pub const AuthApiKeyInvalidStatusTransition: Self = Self::AUTH_API_KEY_INVALID_STATUS_TRANSITION

Idiomatic alias for Self::AUTH_API_KEY_INVALID_STATUS_TRANSITION; Debug prints the variant name.

Source

pub const AuthPolicyInvalid: Self = Self::AUTH_POLICY_INVALID

Idiomatic alias for Self::AUTH_POLICY_INVALID; Debug prints the variant name.

Source

pub const AuthSmartAccountAlreadyLinked: Self = Self::AUTH_SMART_ACCOUNT_ALREADY_LINKED

Idiomatic alias for Self::AUTH_SMART_ACCOUNT_ALREADY_LINKED; Debug prints the variant name.

Source

pub const AuthInviteAccessDenied: Self = Self::AUTH_INVITE_ACCESS_DENIED

Idiomatic alias for Self::AUTH_INVITE_ACCESS_DENIED; Debug prints the variant name.

Source

pub const AuthInviteInvalidState: Self = Self::AUTH_INVITE_INVALID_STATE

Idiomatic alias for Self::AUTH_INVITE_INVALID_STATE; Debug prints the variant name.

Source

pub const AuthMfaDisabled: Self = Self::AUTH_MFA_DISABLED

Idiomatic alias for Self::AUTH_MFA_DISABLED; Debug prints the variant name.

Source

pub const AuthMfaNotEnrolled: Self = Self::AUTH_MFA_NOT_ENROLLED

Idiomatic alias for Self::AUTH_MFA_NOT_ENROLLED; Debug prints the variant name.

Source

pub const AuthMfaSessionInvalid: Self = Self::AUTH_MFA_SESSION_INVALID

Idiomatic alias for Self::AUTH_MFA_SESSION_INVALID; Debug prints the variant name.

Source

pub const AuthMfaChallengeNotFound: Self = Self::AUTH_MFA_CHALLENGE_NOT_FOUND

Idiomatic alias for Self::AUTH_MFA_CHALLENGE_NOT_FOUND; Debug prints the variant name.

Source

pub const AuthMfaChallengeInvalid: Self = Self::AUTH_MFA_CHALLENGE_INVALID

Idiomatic alias for Self::AUTH_MFA_CHALLENGE_INVALID; Debug prints the variant name.

Source

pub const AuthMfaChallengeLocked: Self = Self::AUTH_MFA_CHALLENGE_LOCKED

Idiomatic alias for Self::AUTH_MFA_CHALLENGE_LOCKED; Debug prints the variant name.

Source

pub const AuthMfaOtpInvalid: Self = Self::AUTH_MFA_OTP_INVALID

Idiomatic alias for Self::AUTH_MFA_OTP_INVALID; Debug prints the variant name.

Source

pub const AuthMfaRecoveryInvalid: Self = Self::AUTH_MFA_RECOVERY_INVALID

Idiomatic alias for Self::AUTH_MFA_RECOVERY_INVALID; Debug prints the variant name.

Source

pub const AuthMfaPasskeyNotAvailable: Self = Self::AUTH_MFA_PASSKEY_NOT_AVAILABLE

Idiomatic alias for Self::AUTH_MFA_PASSKEY_NOT_AVAILABLE; Debug prints the variant name.

Source

pub const AuthMfaPasskeyCredentialInvalid: Self = Self::AUTH_MFA_PASSKEY_CREDENTIAL_INVALID

Idiomatic alias for Self::AUTH_MFA_PASSKEY_CREDENTIAL_INVALID; Debug prints the variant name.

Source

pub const AuthMfaPasskeyVerifyFailed: Self = Self::AUTH_MFA_PASSKEY_VERIFY_FAILED

Idiomatic alias for Self::AUTH_MFA_PASSKEY_VERIFY_FAILED; Debug prints the variant name.

Source

pub const AuthMfaEnrollmentBindingInvalid: Self = Self::AUTH_MFA_ENROLLMENT_BINDING_INVALID

Idiomatic alias for Self::AUTH_MFA_ENROLLMENT_BINDING_INVALID; Debug prints the variant name.

Source

pub const AuthStepUpRequired: Self = Self::AUTH_STEP_UP_REQUIRED

Idiomatic alias for Self::AUTH_STEP_UP_REQUIRED; Debug prints the variant name.

Source

pub const AuthStepUpProofUnavailable: Self = Self::AUTH_STEP_UP_PROOF_UNAVAILABLE

Idiomatic alias for Self::AUTH_STEP_UP_PROOF_UNAVAILABLE; Debug prints the variant name.

Source

pub const AuthStepUpAlreadyClaimed: Self = Self::AUTH_STEP_UP_ALREADY_CLAIMED

Idiomatic alias for Self::AUTH_STEP_UP_ALREADY_CLAIMED; Debug prints the variant name.

Source

pub const AuthPolicyInUse: Self = Self::AUTH_POLICY_IN_USE

Idiomatic alias for Self::AUTH_POLICY_IN_USE; Debug prints the variant name.

Source

pub const AuthPolicyLocked: Self = Self::AUTH_POLICY_LOCKED

Idiomatic alias for Self::AUTH_POLICY_LOCKED; Debug prints the variant name.

Source

pub const AuthPolicyScopeMismatch: Self = Self::AUTH_POLICY_SCOPE_MISMATCH

Idiomatic alias for Self::AUTH_POLICY_SCOPE_MISMATCH; Debug prints the variant name.

Source

pub const AuthRevisionConflict: Self = Self::AUTH_REVISION_CONFLICT

Idiomatic alias for Self::AUTH_REVISION_CONFLICT; Debug prints the variant name.

Source

pub const AuthMfaElevationRequired: Self = Self::AUTH_MFA_ELEVATION_REQUIRED

Idiomatic alias for Self::AUTH_MFA_ELEVATION_REQUIRED; Debug prints the variant name.

Source

pub const AuthMfaLastFactorRequired: Self = Self::AUTH_MFA_LAST_FACTOR_REQUIRED

Idiomatic alias for Self::AUTH_MFA_LAST_FACTOR_REQUIRED; Debug prints the variant name.

Trait Implementations§

Source§

impl Clone for AuthErrorCode

Source§

fn clone(&self) -> AuthErrorCode

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for AuthErrorCode

Source§

impl Debug for AuthErrorCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for AuthErrorCode

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for AuthErrorCode

Source§

fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Enumeration for AuthErrorCode

Source§

fn from_i32(value: i32) -> Option<Self>

Convert from an i32 wire value to the enum. Read more
Source§

fn to_i32(&self) -> i32

Convert the enum to its i32 wire value.
Source§

fn proto_name(&self) -> &'static str

The name of this enum variant as it appears in the .proto file.
Source§

fn from_proto_name(name: &str) -> Option<Self>

Look up a variant by its protobuf name string. Read more
Source§

fn values() -> &'static [Self]

All known variants of this enum, in proto declaration order. Read more
Source§

impl Eq for AuthErrorCode

Source§

impl Hash for AuthErrorCode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for AuthErrorCode

Source§

fn eq(&self, other: &AuthErrorCode) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl ProtoElemJson for AuthErrorCode

Source§

fn serialize_proto_json<S: Serializer>( v: &Self, s: S, ) -> Result<S::Ok, S::Error>

Serialize this value with proto3 JSON semantics.
Source§

fn deserialize_proto_json<'de, D: Deserializer<'de>>( d: D, ) -> Result<Self, D::Error>

Deserialize a value with proto3 JSON semantics.
Source§

impl Serialize for AuthErrorCode

Source§

fn serialize<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for AuthErrorCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> JsonDeserialize for T

Source§

impl<T> JsonSerialize for T
where T: Serialize,

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more