Enum casper_types::account::UpdateKeyFailure
source · #[non_exhaustive]#[repr(i32)]pub enum UpdateKeyFailure {
MissingKey = 1,
PermissionDenied = 2,
ThresholdViolation = 3,
}Expand description
Errors that can occur while updating the Weight of a AccountHash in 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.
MissingKey = 1
The given AccountHash is not associated with the given account.
PermissionDenied = 2
Caller doesn’t have sufficient permissions to update an associated AccountHash from the
given account.
ThresholdViolation = 3
Updating the Weight of the given associated AccountHash would cause the total
weight of all AccountHashs to fall below one of the action thresholds for the given
account.
Trait Implementations§
source§impl Clone for UpdateKeyFailure
impl Clone for UpdateKeyFailure
source§fn clone(&self) -> UpdateKeyFailure
fn clone(&self) -> UpdateKeyFailure
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 UpdateKeyFailure
impl Debug for UpdateKeyFailure
source§impl Display for UpdateKeyFailure
impl Display for UpdateKeyFailure
source§impl From<UpdateKeyFailure> for ApiError
impl From<UpdateKeyFailure> for ApiError
source§fn from(error: UpdateKeyFailure) -> Self
fn from(error: UpdateKeyFailure) -> Self
Converts to this type from the input type.
source§impl PartialEq for UpdateKeyFailure
impl PartialEq for UpdateKeyFailure
source§fn eq(&self, other: &UpdateKeyFailure) -> bool
fn eq(&self, other: &UpdateKeyFailure) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for UpdateKeyFailure
impl Eq for UpdateKeyFailure
impl StructuralEq for UpdateKeyFailure
impl StructuralPartialEq for UpdateKeyFailure
Auto Trait Implementations§
impl RefUnwindSafe for UpdateKeyFailure
impl Send for UpdateKeyFailure
impl Sync for UpdateKeyFailure
impl Unpin for UpdateKeyFailure
impl UnwindSafe for UpdateKeyFailure
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