pub enum RpcTransactionResponse {
Variant0 {
final_execution_status: TxExecutionStatus,
receipts: Vec<ReceiptView>,
receipts_outcome: Vec<ExecutionOutcomeWithIdView>,
status: FinalExecutionStatus,
transaction: SignedTransactionView,
transaction_outcome: ExecutionOutcomeWithIdView,
},
Variant1 {
final_execution_status: TxExecutionStatus,
receipts_outcome: Vec<ExecutionOutcomeWithIdView>,
status: FinalExecutionStatus,
transaction: SignedTransactionView,
transaction_outcome: ExecutionOutcomeWithIdView,
},
}Expand description
RpcTransactionResponse
JSON schema
{
"type": "object",
"anyOf": [
{
"$ref": "#/components/schemas/FinalExecutionOutcomeWithReceiptView"
},
{
"$ref": "#/components/schemas/FinalExecutionOutcomeView"
}
],
"required": [
"final_execution_status"
],
"properties": {
"final_execution_status": {
"$ref": "#/components/schemas/TxExecutionStatus"
}
}
}Variants§
Variant0
Fields
final_execution_status: TxExecutionStatusreceipts: Vec<ReceiptView>Receipts generated from the transaction
receipts_outcome: Vec<ExecutionOutcomeWithIdView>The execution outcome of receipts.
status: FinalExecutionStatusExecution status defined by chain.rs:get_final_transaction_result FinalExecutionStatus::NotStarted - the tx is not converted to the receipt yet FinalExecutionStatus::Started - we have at least 1 receipt, but the first leaf receipt_id (using dfs) hasn’t finished the execution FinalExecutionStatus::Failure - the result of the first leaf receipt_id FinalExecutionStatus::SuccessValue - the result of the first leaf receipt_id
transaction: SignedTransactionViewSigned Transaction
transaction_outcome: ExecutionOutcomeWithIdViewThe execution outcome of the signed transaction.
Variant1
Fields
final_execution_status: TxExecutionStatusreceipts_outcome: Vec<ExecutionOutcomeWithIdView>The execution outcome of receipts.
status: FinalExecutionStatusExecution status defined by chain.rs:get_final_transaction_result FinalExecutionStatus::NotStarted - the tx is not converted to the receipt yet FinalExecutionStatus::Started - we have at least 1 receipt, but the first leaf receipt_id (using dfs) hasn’t finished the execution FinalExecutionStatus::Failure - the result of the first leaf receipt_id FinalExecutionStatus::SuccessValue - the result of the first leaf receipt_id
transaction: SignedTransactionViewSigned Transaction
transaction_outcome: ExecutionOutcomeWithIdViewThe execution outcome of the signed transaction.
Trait Implementations§
Source§impl Clone for RpcTransactionResponse
impl Clone for RpcTransactionResponse
Source§fn clone(&self) -> RpcTransactionResponse
fn clone(&self) -> RpcTransactionResponse
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RpcTransactionResponse
impl Debug for RpcTransactionResponse
Source§impl<'de> Deserialize<'de> for RpcTransactionResponse
impl<'de> Deserialize<'de> for RpcTransactionResponse
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<&RpcTransactionResponse> for RpcTransactionResponse
impl From<&RpcTransactionResponse> for RpcTransactionResponse
Source§fn from(value: &RpcTransactionResponse) -> Self
fn from(value: &RpcTransactionResponse) -> Self
Auto Trait Implementations§
impl Freeze for RpcTransactionResponse
impl RefUnwindSafe for RpcTransactionResponse
impl Send for RpcTransactionResponse
impl Sync for RpcTransactionResponse
impl Unpin for RpcTransactionResponse
impl UnwindSafe for RpcTransactionResponse
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)