Enum diem_sdk::client::views::TransactionDataView
pub enum TransactionDataView {
BlockMetadata {
timestamp_usecs: u64,
},
WriteSet {},
UserTransaction {Show 17 fields
sender: AccountAddress,
signature_scheme: String,
signature: BytesView,
public_key: BytesView,
secondary_signers: Option<Vec<AccountAddress, Global>>,
secondary_signature_schemes: Option<Vec<String, Global>>,
secondary_signatures: Option<Vec<BytesView, Global>>,
secondary_public_keys: Option<Vec<BytesView, Global>>,
sequence_number: u64,
chain_id: u8,
max_gas_amount: u64,
gas_unit_price: u64,
gas_currency: String,
expiration_timestamp_secs: u64,
script_hash: HashValue,
script_bytes: BytesView,
script: ScriptView,
},
UnknownTransaction,
}
Variants§
BlockMetadata
WriteSet
Fields
UserTransaction
Fields
§
sender: AccountAddress
§
secondary_signers: Option<Vec<AccountAddress, Global>>
§
script: ScriptView
UnknownTransaction
Trait Implementations§
§impl Clone for TransactionDataView
impl Clone for TransactionDataView
§fn clone(&self) -> TransactionDataView
fn clone(&self) -> TransactionDataView
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 TransactionDataView
impl Debug for TransactionDataView
§impl<'de> Deserialize<'de> for TransactionDataView
impl<'de> Deserialize<'de> for TransactionDataView
§fn deserialize<__D>(
__deserializer: __D
) -> Result<TransactionDataView, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<TransactionDataView, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl From<Transaction> for TransactionDataView
impl From<Transaction> for TransactionDataView
§fn from(tx: Transaction) -> TransactionDataView
fn from(tx: Transaction) -> TransactionDataView
Converts to this type from the input type.
§impl PartialEq<TransactionDataView> for TransactionDataView
impl PartialEq<TransactionDataView> for TransactionDataView
§fn eq(&self, other: &TransactionDataView) -> bool
fn eq(&self, other: &TransactionDataView) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for TransactionDataView
impl Serialize for TransactionDataView
§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 Eq for TransactionDataView
impl StructuralEq for TransactionDataView
impl StructuralPartialEq for TransactionDataView
Auto Trait Implementations§
impl RefUnwindSafe for TransactionDataView
impl Send for TransactionDataView
impl Sync for TransactionDataView
impl Unpin for TransactionDataView
impl UnwindSafe for TransactionDataView
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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.