Struct diem_json_rpc_types::views::TransactionView
source · pub struct TransactionView {
pub version: u64,
pub transaction: TransactionDataView,
pub hash: HashValue,
pub bytes: BytesView,
pub events: Vec<EventView>,
pub vm_status: VMStatusView,
pub gas_used: u64,
}
Fields§
§version: u64
§transaction: TransactionDataView
§hash: HashValue
§bytes: BytesView
§events: Vec<EventView>
§vm_status: VMStatusView
§gas_used: u64
Implementations§
source§impl TransactionView
impl TransactionView
pub fn try_from_tx_and_events( version: u64, tx: Transaction, tx_info: TransactionInfo, events: Vec<ContractEvent> ) -> Result<Self>
Trait Implementations§
source§impl Clone for TransactionView
impl Clone for TransactionView
source§fn clone(&self) -> TransactionView
fn clone(&self) -> TransactionView
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TransactionView
impl Debug for TransactionView
source§impl<'de> Deserialize<'de> for TransactionView
impl<'de> Deserialize<'de> for TransactionView
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<TransactionView> for TransactionView
impl PartialEq<TransactionView> for TransactionView
source§fn eq(&self, other: &TransactionView) -> bool
fn eq(&self, other: &TransactionView) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TransactionView
impl Serialize for TransactionView
impl StructuralPartialEq for TransactionView
Auto Trait Implementations§
impl RefUnwindSafe for TransactionView
impl Send for TransactionView
impl Sync for TransactionView
impl Unpin for TransactionView
impl UnwindSafe for TransactionView
Blanket Implementations§
§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.