pub enum ActionsValidationError {
DeleteActionMustBeFinal,
TotalPrepaidGasExceeded {
total_prepaid_gas: Gas,
limit: Gas,
},
TotalNumberOfActionsExceeded {
total_number_of_actions: u64,
limit: u64,
},
AddKeyMethodNamesNumberOfBytesExceeded {
total_number_of_bytes: u64,
limit: u64,
},
AddKeyMethodNameLengthExceeded {
length: u64,
limit: u64,
},
IntegerOverflow,
InvalidAccountId {
account_id: AccountId,
},
ContractSizeExceeded {
size: u64,
limit: u64,
},
FunctionCallMethodNameLengthExceeded {
length: u64,
limit: u64,
},
FunctionCallArgumentsLengthExceeded {
length: u64,
limit: u64,
},
UnsuitableStakingKey {
public_key: PublicKey,
},
FunctionCallZeroAttachedGas,
}Expand description
Describes the error for validating a list of actions.
Variants
DeleteActionMustBeFinal
The delete action must be a final aciton in transaction
TotalPrepaidGasExceeded
The total prepaid gas (for all given actions) exceeded the limit.
TotalNumberOfActionsExceeded
The number of actions exceeded the given limit.
AddKeyMethodNamesNumberOfBytesExceeded
The total number of bytes of the method names exceeded the limit in a Add Key action.
AddKeyMethodNameLengthExceeded
The length of some method name exceeded the limit in a Add Key action.
IntegerOverflow
Integer overflow during a compute.
InvalidAccountId
Fields
account_id: AccountIdInvalid account ID.
ContractSizeExceeded
The size of the contract code exceeded the limit in a DeployContract action.
FunctionCallMethodNameLengthExceeded
The length of the method name exceeded the limit in a Function Call action.
FunctionCallArgumentsLengthExceeded
The length of the arguments exceeded the limit in a Function Call action.
UnsuitableStakingKey
Fields
public_key: PublicKeyAn attempt to stake with a public key that is not convertible to ristretto.
FunctionCallZeroAttachedGas
The attached amount of gas in a FunctionCall action has to be a positive number.
Trait Implementations
sourceimpl BorshDeserialize for ActionsValidationError where
Gas: BorshDeserialize,
Gas: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
AccountId: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
PublicKey: BorshDeserialize,
impl BorshDeserialize for ActionsValidationError where
Gas: BorshDeserialize,
Gas: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
AccountId: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
PublicKey: BorshDeserialize,
sourceimpl BorshSerialize for ActionsValidationError where
Gas: BorshSerialize,
Gas: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
AccountId: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
PublicKey: BorshSerialize,
impl BorshSerialize for ActionsValidationError where
Gas: BorshSerialize,
Gas: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
AccountId: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
PublicKey: BorshSerialize,
sourceimpl Clone for ActionsValidationError
impl Clone for ActionsValidationError
sourcefn clone(&self) -> ActionsValidationError
fn clone(&self) -> ActionsValidationError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ActionsValidationError
impl Debug for ActionsValidationError
sourceimpl<'de> Deserialize<'de> for ActionsValidationError
impl<'de> Deserialize<'de> for ActionsValidationError
sourcefn 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
sourceimpl Display for ActionsValidationError
impl Display for ActionsValidationError
sourceimpl Error for ActionsValidationError
impl Error for ActionsValidationError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl PartialEq<ActionsValidationError> for ActionsValidationError
impl PartialEq<ActionsValidationError> for ActionsValidationError
sourcefn eq(&self, other: &ActionsValidationError) -> bool
fn eq(&self, other: &ActionsValidationError) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ActionsValidationError) -> bool
fn ne(&self, other: &ActionsValidationError) -> bool
This method tests for !=.
sourceimpl Serialize for ActionsValidationError
impl Serialize for ActionsValidationError
impl Eq for ActionsValidationError
impl StructuralEq for ActionsValidationError
impl StructuralPartialEq for ActionsValidationError
Auto Trait Implementations
impl RefUnwindSafe for ActionsValidationError
impl Send for ActionsValidationError
impl Sync for ActionsValidationError
impl Unpin for ActionsValidationError
impl UnwindSafe for ActionsValidationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more