pub struct ExecutionOutcome(pub ExecutionOutcome);Expand description
Execution outcome for one signed transaction or one receipt.
Tuple Fields§
§0: ExecutionOutcomeImplementations§
Source§impl ExecutionOutcome
impl ExecutionOutcome
pub fn new( logs: Vec<String>, receipt_ids: Vec<CryptoHash>, gas_burnt: Gas, tokens_burnt: Balance, executor_id: AccountId, status: ExecutionStatus, metadata: ExecutionMetadata, ) -> Self
Sourcepub fn receipt_ids(&self) -> Vec<CryptoHash>
pub fn receipt_ids(&self) -> Vec<CryptoHash>
listCryptoHash: Receipt IDs generated by this transaction or receipt.
Sourcepub fn gas_burnt(&self) -> Gas
pub fn gas_burnt(&self) -> Gas
int: The amount of the gas burnt by the given transaction or receipt.
Sourcepub fn tokens_burnt(&self) -> Balance
pub fn tokens_burnt(&self) -> Balance
int: The amount of tokens burnt corresponding to the burnt gas amount.
This value doesn’t always equal to the gas_burnt multiplied by the gas price, because
the prepaid gas price might be lower than the actual gas price and it creates a deficit.
Sourcepub fn executor_id(&self) -> AccountId
pub fn executor_id(&self) -> AccountId
AccountId: The id of the account on which the execution happens. For transaction this is signer_id, for receipt this is receiver_id.
Sourcepub fn status(&self) -> ExecutionStatus
pub fn status(&self) -> ExecutionStatus
ExecutionStatus: Execution status. Contains the result in case of successful execution. NOTE: Should be the latest field since it contains unparsable by light client ExecutionStatus::Failure
Sourcepub fn metadata(&self) -> ExecutionMetadata
pub fn metadata(&self) -> ExecutionMetadata
ExecutionMetadata: Execution metadata, versioned
pub fn __richcmp__(&self, other: &Self, op: CompareOp) -> PyResult<bool>
pub fn __bytes__<'a>(&self, py: Python<'a>) -> &'a PyBytes
pub fn __str__(&self) -> String
pub fn __repr__(&self) -> String
pub fn __reduce__(&self) -> PyResult<(PyObject, PyObject)>
Sourcepub fn from_bytes(data: &[u8]) -> PyResult<Self>
pub fn from_bytes(data: &[u8]) -> PyResult<Self>
Deserialize from bytes.
Args: data (bytes): the serialized object.
Returns: the deserialized object.
Trait Implementations§
Source§impl BorshDeserialize for ExecutionOutcome
impl BorshDeserialize for ExecutionOutcome
Source§impl BorshSerialize for ExecutionOutcome
impl BorshSerialize for ExecutionOutcome
Source§impl Clone for ExecutionOutcome
impl Clone for ExecutionOutcome
Source§fn clone(&self) -> ExecutionOutcome
fn clone(&self) -> ExecutionOutcome
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl CommonMethodsCore for ExecutionOutcome
impl CommonMethodsCore for ExecutionOutcome
Source§impl Debug for ExecutionOutcome
impl Debug for ExecutionOutcome
Source§impl Display for ExecutionOutcome
impl Display for ExecutionOutcome
Source§impl From<ExecutionOutcome> for ExecutionOutcome
impl From<ExecutionOutcome> for ExecutionOutcome
Source§fn from(original: ExecutionOutcomeOriginal) -> ExecutionOutcome
fn from(original: ExecutionOutcomeOriginal) -> ExecutionOutcome
Source§impl From<ExecutionOutcome> for ExecutionOutcome
impl From<ExecutionOutcome> for ExecutionOutcome
Source§fn from(original: ExecutionOutcome) -> Self
fn from(original: ExecutionOutcome) -> Self
Source§impl PartialEq for ExecutionOutcome
impl PartialEq for ExecutionOutcome
Source§impl PyBytesBorsh for ExecutionOutcome
impl PyBytesBorsh for ExecutionOutcome
fn pybytes_borsh<'a>(&self, py: Python<'a>) -> &'a PyBytes
Source§impl PyBytesGeneral for ExecutionOutcome
impl PyBytesGeneral for ExecutionOutcome
fn pybytes_general<'a>(&self, py: Python<'a>) -> &'a PyBytes
Source§impl PyClass for ExecutionOutcome
impl PyClass for ExecutionOutcome
Source§impl PyClassImpl for ExecutionOutcome
impl PyClassImpl for ExecutionOutcome
Source§const DOC: &'static str = "Execution outcome for one signed transaction or one receipt.\u{0}"
const DOC: &'static str = "Execution outcome for one signed transaction or one receipt.\u{0}"
Source§const IS_BASETYPE: bool = true
const IS_BASETYPE: bool = true
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
Source§type Layout = PyCell<ExecutionOutcome>
type Layout = PyCell<ExecutionOutcome>
Source§type ThreadChecker = ThreadCheckerStub<ExecutionOutcome>
type ThreadChecker = ThreadCheckerStub<ExecutionOutcome>
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
PyAny by default, and when you declare
#[pyclass(extends=PyDict)], it’s PyDict.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
Source§impl PyFromBytesBorsh for ExecutionOutcome
impl PyFromBytesBorsh for ExecutionOutcome
fn py_from_bytes_borsh(raw: &[u8]) -> PyResult<Self>
Source§impl PyFromBytesGeneral for ExecutionOutcome
impl PyFromBytesGeneral for ExecutionOutcome
fn py_from_bytes_general(raw: &[u8]) -> PyResult<Self>
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a ExecutionOutcome
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a ExecutionOutcome
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut ExecutionOutcome
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut ExecutionOutcome
Source§impl PyMethods<ExecutionOutcome> for PyClassImplCollector<ExecutionOutcome>
impl PyMethods<ExecutionOutcome> for PyClassImplCollector<ExecutionOutcome>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for ExecutionOutcome
impl PyTypeInfo for ExecutionOutcome
Source§type AsRefTarget = PyCell<ExecutionOutcome>
type AsRefTarget = PyCell<ExecutionOutcome>
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Source§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
object is an instance of this type or a subclass of this type.Source§fn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
object is an instance of this type.impl Eq for ExecutionOutcome
impl StructuralPartialEq for ExecutionOutcome
Auto Trait Implementations§
impl Freeze for ExecutionOutcome
impl RefUnwindSafe for ExecutionOutcome
impl Send for ExecutionOutcome
impl Sync for ExecutionOutcome
impl Unpin for ExecutionOutcome
impl UnwindSafe for ExecutionOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<'a, T> FromPyObject<'a> for T
impl<'a, T> FromPyObject<'a> for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more