pub enum UserStateError {
Show 20 variants
UnknownError,
InvalidData,
CallerNotAuthorized,
CallerIsNotOwner,
CallerIsNotWalletCanister,
InvalidCanisterID,
UserNotFound,
UserAlreadyExists,
PublicKeyMismatch,
AccountNotFound,
AccountAlreadyExists,
ChainNotFound,
ChainAlreadyExists,
TransactionNotFound,
AccountLimitReached,
InvalidAccountKey,
SettingNotFound,
PasswordHashError,
PasswordIsInvalid,
PasswordNotSet,
}Expand description
Represents errors that can occur when working with the state.
Variants§
UnknownError
InvalidData
CallerNotAuthorized
CallerIsNotOwner
CallerIsNotWalletCanister
InvalidCanisterID
UserNotFound
UserAlreadyExists
PublicKeyMismatch
AccountNotFound
AccountAlreadyExists
ChainNotFound
ChainAlreadyExists
TransactionNotFound
AccountLimitReached
InvalidAccountKey
SettingNotFound
PasswordHashError
PasswordIsInvalid
PasswordNotSet
Trait Implementations§
Source§impl CandidType for UserStateError
impl CandidType for UserStateError
Source§impl Debug for UserStateError
impl Debug for UserStateError
Source§impl From<UserStateError> for (RejectionCode, String)
impl From<UserStateError> for (RejectionCode, String)
Source§fn from(error: UserStateError) -> Self
fn from(error: UserStateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UserStateError
impl RefUnwindSafe for UserStateError
impl Send for UserStateError
impl Sync for UserStateError
impl Unpin for UserStateError
impl UnwindSafe for UserStateError
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