Struct diem_client::views::TransactionView
pub struct TransactionView {
pub version: u64,
pub transaction: TransactionDataView,
pub hash: HashValue,
pub bytes: BytesView,
pub events: Vec<EventView, Global>,
pub vm_status: VMStatusView,
pub gas_used: u64,
}
Fields§
§version: u64
§transaction: TransactionDataView
§hash: HashValue
§bytes: BytesView
§events: Vec<EventView, Global>
§vm_status: VMStatusView
§gas_used: u64
Implementations§
§impl TransactionView
impl TransactionView
pub fn try_from_tx_and_events( version: u64, tx: Transaction, tx_info: TransactionInfo, events: Vec<ContractEvent, Global> ) -> Result<TransactionView, Error>
Trait Implementations§
§impl Clone for TransactionView
impl Clone for TransactionView
§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 more§impl Debug for TransactionView
impl Debug for TransactionView
§impl<'de> Deserialize<'de> for TransactionView
impl<'de> Deserialize<'de> for TransactionView
§fn deserialize<__D>(
__deserializer: __D
) -> Result<TransactionView, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<TransactionView, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq<TransactionView> for TransactionView
impl PartialEq<TransactionView> for TransactionView
§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 ==
.§impl Serialize for TransactionView
impl Serialize for TransactionView
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
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§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§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.