#[non_exhaustive]#[repr(i32)]pub enum UpdateKeyFailure {
MissingKey = 1,
PermissionDenied = 2,
ThresholdViolation = 3,
}Expand description
Errors that can occur while updating the crate::addressable_entity::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 crate::addressable_entity::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
impl Copy for UpdateKeyFailure
impl Eq for UpdateKeyFailure
impl StructuralPartialEq for UpdateKeyFailure
Auto Trait Implementations§
impl Freeze for UpdateKeyFailure
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
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§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
Compare self to
key and return true if they are equal.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
Compare self to
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>
Converts
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>
Converts
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