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>>,
secondary_signature_schemes: Option<Vec<String>>,
secondary_signatures: Option<Vec<BytesView>>,
secondary_public_keys: Option<Vec<BytesView>>,
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
UnknownTransaction
Trait Implementations§
source§impl Clone for TransactionDataView
impl Clone for TransactionDataView
source§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 moresource§impl Debug for TransactionDataView
impl Debug for TransactionDataView
source§impl<'de> Deserialize<'de> for TransactionDataView
impl<'de> Deserialize<'de> for TransactionDataView
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 From<Transaction> for TransactionDataView
impl From<Transaction> for TransactionDataView
source§impl PartialEq<TransactionDataView> for TransactionDataView
impl PartialEq<TransactionDataView> for TransactionDataView
source§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 ==
.source§impl Serialize for TransactionDataView
impl Serialize for TransactionDataView
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.§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.