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.\n Action 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: ActionErrorKindThe 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§const fn clone_from(&mut self, source: &Self)
const 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<ActionError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ActionError, <__D as Deserializer<'de>>::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) -> ActionError
fn from(value: &ActionError) -> ActionError
Converts to this type from the input type.
Source§impl From<ActionError> for TxExecutionError
impl From<ActionError> for TxExecutionError
Source§fn from(value: ActionError) -> TxExecutionError
fn from(value: ActionError) -> TxExecutionError
Converts to this type from the input type.
Source§impl Serialize for ActionError
impl Serialize for ActionError
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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