pub struct ActionError {
pub index: Option<u64>,
pub kind: ActionErrorKind,
}
Expand description
An error happened during Action execution
JSON schema
{
"description": "An error happened during Action execution",
"type": "object",
"required": [
"kind"
],
"properties": {
"index": {
"description": "Index of the failed action in the transaction.\nAction index is not defined if ActionError.kind is `ActionErrorKind::LackBalanceForState`",
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
},
"kind": {
"description": "The kind of ActionError happened",
"allOf": [
{
"$ref": "#/components/schemas/ActionErrorKind"
}
]
}
}
}
Fields§
§index: Option<u64>
Index of the failed action in the transaction.
Action index is not defined if ActionError.kind is ActionErrorKind::LackBalanceForState
kind: ActionErrorKind
The kind of ActionError happened
Trait Implementations§
Source§impl Clone for ActionError
impl Clone for ActionError
Source§fn clone(&self) -> ActionError
fn clone(&self) -> ActionError
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 ActionError
impl Debug for ActionError
Source§impl<'de> Deserialize<'de> for ActionError
impl<'de> Deserialize<'de> for ActionError
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
Source§impl From<&ActionError> for ActionError
impl From<&ActionError> for ActionError
Source§fn from(value: &ActionError) -> Self
fn from(value: &ActionError) -> Self
Converts to this type from the input type.
Source§impl From<ActionError> for TxExecutionError
impl From<ActionError> for TxExecutionError
Source§fn from(value: ActionError) -> Self
fn from(value: ActionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ActionError
impl RefUnwindSafe for ActionError
impl Send for ActionError
impl Sync for ActionError
impl Unpin for ActionError
impl UnwindSafe for ActionError
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