Enum casper_types::account::AddKeyFailure
source · #[non_exhaustive]#[repr(i32)]pub enum AddKeyFailure {
MaxKeysLimit = 1,
DuplicateKey = 2,
PermissionDenied = 3,
}Expand description
Errors that can occur while adding a new AccountHash to an account’s associated keys map.
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.
MaxKeysLimit = 1
There are already maximum AccountHashs associated with the given account.
DuplicateKey = 2
The given AccountHash is already associated with the given account.
PermissionDenied = 3
Caller doesn’t have sufficient permissions to associate a new AccountHash with the
given account.
Trait Implementations§
source§impl Clone for AddKeyFailure
impl Clone for AddKeyFailure
source§fn clone(&self) -> AddKeyFailure
fn clone(&self) -> AddKeyFailure
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for AddKeyFailure
impl Debug for AddKeyFailure
source§impl Display for AddKeyFailure
impl Display for AddKeyFailure
source§impl From<AddKeyFailure> for ApiError
impl From<AddKeyFailure> for ApiError
source§fn from(error: AddKeyFailure) -> Self
fn from(error: AddKeyFailure) -> Self
Converts to this type from the input type.
source§impl PartialEq for AddKeyFailure
impl PartialEq for AddKeyFailure
source§fn eq(&self, other: &AddKeyFailure) -> bool
fn eq(&self, other: &AddKeyFailure) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for AddKeyFailure
impl Eq for AddKeyFailure
impl StructuralEq for AddKeyFailure
impl StructuralPartialEq for AddKeyFailure
Auto Trait Implementations§
impl RefUnwindSafe for AddKeyFailure
impl Send for AddKeyFailure
impl Sync for AddKeyFailure
impl Unpin for AddKeyFailure
impl UnwindSafe for AddKeyFailure
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