Struct near_primitives::errors::ActionError
source · [−]pub struct ActionError {
pub index: Option<u64>,
pub kind: ActionErrorKind,
}Expand description
An error happened during Acton execution
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
sourceimpl BorshDeserialize for ActionError where
Option<u64>: BorshDeserialize,
ActionErrorKind: BorshDeserialize,
impl BorshDeserialize for ActionError where
Option<u64>: BorshDeserialize,
ActionErrorKind: BorshDeserialize,
sourceimpl BorshSerialize for ActionError where
Option<u64>: BorshSerialize,
ActionErrorKind: BorshSerialize,
impl BorshSerialize for ActionError where
Option<u64>: BorshSerialize,
ActionErrorKind: BorshSerialize,
sourceimpl Clone for ActionError
impl Clone for ActionError
sourcefn clone(&self) -> ActionError
fn clone(&self) -> ActionError
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 ActionError
impl Debug for ActionError
sourceimpl<'de> Deserialize<'de> for ActionError
impl<'de> Deserialize<'de> for ActionError
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 ActionError
impl Display for ActionError
sourceimpl Error for ActionError
impl Error for ActionError
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 From<ActionError> for TxExecutionError
impl From<ActionError> for TxExecutionError
sourcefn from(error: ActionError) -> Self
fn from(error: ActionError) -> Self
Converts to this type from the input type.
sourceimpl From<ActionErrorKind> for ActionError
impl From<ActionErrorKind> for ActionError
sourcefn from(e: ActionErrorKind) -> ActionError
fn from(e: ActionErrorKind) -> ActionError
Converts to this type from the input type.
sourceimpl PartialEq<ActionError> for ActionError
impl PartialEq<ActionError> for ActionError
sourcefn eq(&self, other: &ActionError) -> bool
fn eq(&self, other: &ActionError) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ActionError) -> bool
fn ne(&self, other: &ActionError) -> bool
This method tests for !=.
sourceimpl Serialize for ActionError
impl Serialize for ActionError
impl Eq for ActionError
impl StructuralEq for ActionError
impl StructuralPartialEq for ActionError
Auto Trait Implementations
impl RefUnwindSafe for ActionError
impl Send for ActionError
impl Sync for ActionError
impl Unpin for ActionError
impl UnwindSafe for ActionError
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