pub enum ActionErrorKind {
Show 26 variants
AccountAlreadyExists {
account_id: AccountId,
},
AccountDoesNotExist {
account_id: AccountId,
},
CreateAccountOnlyByRegistrar {
account_id: AccountId,
predecessor_id: AccountId,
registrar_account_id: AccountId,
},
CreateAccountNotAllowed {
account_id: AccountId,
predecessor_id: AccountId,
},
ActorNoPermission {
account_id: AccountId,
actor_id: AccountId,
},
DeleteKeyDoesNotExist {
account_id: AccountId,
public_key: PublicKey,
},
AddKeyAlreadyExists {
account_id: AccountId,
public_key: PublicKey,
},
DeleteAccountStaking {
account_id: AccountId,
},
LackBalanceForState {
account_id: AccountId,
amount: NearToken,
},
TriesToUnstake {
account_id: AccountId,
},
TriesToStake {
account_id: AccountId,
balance: NearToken,
locked: NearToken,
stake: NearToken,
},
InsufficientStake {
account_id: AccountId,
minimum_stake: NearToken,
stake: NearToken,
},
FunctionCallError(FunctionCallError),
NewReceiptValidationError(ReceiptValidationError),
OnlyImplicitAccountCreationAllowed {
account_id: AccountId,
},
DeleteAccountWithLargeState {
account_id: AccountId,
},
DelegateActionInvalidSignature,
DelegateActionSenderDoesNotMatchTxReceiver {
receiver_id: AccountId,
sender_id: AccountId,
},
DelegateActionExpired,
DelegateActionAccessKeyError(InvalidAccessKeyError),
DelegateActionInvalidNonce {
ak_nonce: u64,
delegate_nonce: u64,
},
DelegateActionNonceTooLarge {
delegate_nonce: u64,
upper_bound: u64,
},
GlobalContractDoesNotExist {
identifier: GlobalContractIdentifierView,
},
GasKeyDoesNotExist {
account_id: AccountId,
public_key: PublicKey,
},
InsufficientGasKeyBalance {
account_id: AccountId,
balance: NearToken,
public_key: PublicKey,
required: NearToken,
},
GasKeyBalanceTooHigh {
account_id: AccountId,
balance: NearToken,
public_key: Option<PublicKey>,
},
}Expand description
Specific kind of action error.
Variants§
AccountAlreadyExists
AccountDoesNotExist
CreateAccountOnlyByRegistrar
CreateAccountNotAllowed
ActorNoPermission
DeleteKeyDoesNotExist
AddKeyAlreadyExists
DeleteAccountStaking
LackBalanceForState
TriesToUnstake
TriesToStake
InsufficientStake
FunctionCallError(FunctionCallError)
NewReceiptValidationError(ReceiptValidationError)
OnlyImplicitAccountCreationAllowed
DeleteAccountWithLargeState
DelegateActionInvalidSignature
DelegateActionSenderDoesNotMatchTxReceiver
DelegateActionExpired
DelegateActionAccessKeyError(InvalidAccessKeyError)
DelegateActionInvalidNonce
DelegateActionNonceTooLarge
GlobalContractDoesNotExist
Fields
§
identifier: GlobalContractIdentifierViewGasKeyDoesNotExist
InsufficientGasKeyBalance
GasKeyBalanceTooHigh
Trait Implementations§
Source§impl Clone for ActionErrorKind
impl Clone for ActionErrorKind
Source§fn clone(&self) -> ActionErrorKind
fn clone(&self) -> ActionErrorKind
Returns a duplicate 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 ActionErrorKind
impl Debug for ActionErrorKind
Source§impl<'de> Deserialize<'de> for ActionErrorKind
impl<'de> Deserialize<'de> for ActionErrorKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ActionErrorKind
impl RefUnwindSafe for ActionErrorKind
impl Send for ActionErrorKind
impl Sync for ActionErrorKind
impl Unpin for ActionErrorKind
impl UnsafeUnpin for ActionErrorKind
impl UnwindSafe for ActionErrorKind
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<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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.