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 ActionErrorwhere
Option<u64>: BorshDeserialize,
ActionErrorKind: BorshDeserialize,
impl BorshDeserialize for ActionErrorwhere
Option<u64>: BorshDeserialize,
ActionErrorKind: BorshDeserialize,
sourceimpl BorshSerialize for ActionErrorwhere
Option<u64>: BorshSerialize,
ActionErrorKind: BorshSerialize,
impl BorshSerialize for ActionErrorwhere
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 moresourceimpl 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
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
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
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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