pub struct ExecutionOutcomeView {
pub executor_id: AccountId,
pub gas_burnt: NearGas,
pub logs: Vec<String>,
pub metadata: ExecutionMetadataView,
pub receipt_ids: Vec<CryptoHash>,
pub status: ExecutionStatusView,
pub tokens_burnt: NearToken,
}Expand description
ExecutionOutcomeView
JSON schema
{
"type": "object",
"required": [
"executor_id",
"gas_burnt",
"logs",
"receipt_ids",
"status",
"tokens_burnt"
],
"properties": {
"executor_id": {
"description": "The id of the account on which the execution happens. For transaction this is signer_id,\nfor receipt this is receiver_id.",
"allOf": [
{
"$ref": "#/components/schemas/AccountId"
}
]
},
"gas_burnt": {
"description": "The amount of the gas burnt by the given transaction or receipt.",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"logs": {
"description": "Logs from this transaction or receipt.",
"type": "array",
"items": {
"type": "string"
}
},
"metadata": {
"description": "Execution metadata, versioned",
"default": {
"version": 1
},
"allOf": [
{
"$ref": "#/components/schemas/ExecutionMetadataView"
}
]
},
"receipt_ids": {
"description": "Receipt IDs generated by this transaction or receipt.",
"type": "array",
"items": {
"$ref": "#/components/schemas/CryptoHash"
}
},
"status": {
"description": "Execution status. Contains the result in case of successful execution.",
"allOf": [
{
"$ref": "#/components/schemas/ExecutionStatusView"
}
]
},
"tokens_burnt": {
"description": "The amount of tokens burnt corresponding to the burnt gas amount.\nThis value doesn't always equal to the `gas_burnt` multiplied by the gas price, because\nthe prepaid gas price might be lower than the actual gas price and it creates a deficit.\n`tokens_burnt` also contains the penalty subtracted from refunds, while\n`gas_burnt` only contains the gas that we actually burn for the execution.",
"allOf": [
{
"$ref": "#/components/schemas/NearToken"
}
]
}
}
}Fields§
§executor_id: AccountIdThe id of the account on which the execution happens. For transaction this is signer_id, for receipt this is receiver_id.
gas_burnt: NearGasThe amount of the gas burnt by the given transaction or receipt.
logs: Vec<String>Logs from this transaction or receipt.
metadata: ExecutionMetadataViewExecution metadata, versioned
receipt_ids: Vec<CryptoHash>Receipt IDs generated by this transaction or receipt.
status: ExecutionStatusViewExecution status. Contains the result in case of successful execution.
tokens_burnt: NearTokenThe 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.
tokens_burnt also contains the penalty subtracted from refunds, while
gas_burnt only contains the gas that we actually burn for the execution.
Trait Implementations§
Source§impl Clone for ExecutionOutcomeView
impl Clone for ExecutionOutcomeView
Source§fn clone(&self) -> ExecutionOutcomeView
fn clone(&self) -> ExecutionOutcomeView
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExecutionOutcomeView
impl Debug for ExecutionOutcomeView
Source§impl<'de> Deserialize<'de> for ExecutionOutcomeView
impl<'de> Deserialize<'de> for ExecutionOutcomeView
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>,
Source§impl From<&ExecutionOutcomeView> for ExecutionOutcomeView
impl From<&ExecutionOutcomeView> for ExecutionOutcomeView
Source§fn from(value: &ExecutionOutcomeView) -> Self
fn from(value: &ExecutionOutcomeView) -> Self
Auto Trait Implementations§
impl Freeze for ExecutionOutcomeView
impl RefUnwindSafe for ExecutionOutcomeView
impl Send for ExecutionOutcomeView
impl Sync for ExecutionOutcomeView
impl Unpin for ExecutionOutcomeView
impl UnwindSafe for ExecutionOutcomeView
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)