Transaction

Struct Transaction 

Source
pub struct Transaction {
Show 41 fields pub block_height: UInt, pub id: Hash, pub input_asset_ids: Option<Vec<Hash>>, pub input_contracts: Option<Vec<FixedSizeData<32>>>, pub input_contract_utxo_id: Option<Hash>, pub input_contract_balance_root: Option<Hash>, pub input_contract_state_root: Option<Hash>, pub input_contract_tx_pointer_block_height: Option<UInt>, pub input_contract_tx_pointer_tx_index: Option<UInt>, pub input_contract: Option<FixedSizeData<32>>, pub policies_tip: Option<UInt>, pub policies_witness_limit: Option<UInt>, pub policies_maturity: Option<UInt>, pub policies_max_fee: Option<UInt>, pub script_gas_limit: Option<UInt>, pub maturity: Option<UInt>, pub mint_amount: Option<UInt>, pub mint_asset_id: Option<Hash>, pub mint_gas_price: Option<UInt>, pub tx_pointer_block_height: Option<UInt>, pub tx_pointer_tx_index: Option<UInt>, pub tx_type: TransactionType, pub output_contract_input_index: Option<UInt>, pub output_contract_balance_root: Option<Hash>, pub output_contract_state_root: Option<Hash>, pub witnesses: Option<Data>, pub receipts_root: Option<Hash>, pub status: TransactionStatus, pub time: UInt, pub reason: Option<String>, pub script: Option<Data>, pub script_data: Option<Data>, pub bytecode_witness_index: Option<UInt>, pub bytecode_root: Option<Hash>, pub subsection_index: Option<UInt>, pub subsections_number: Option<UInt>, pub proof_set: Option<Data>, pub consensus_parameters_upgrade_purpose_witness_index: Option<UInt>, pub consensus_parameters_upgrade_purpose_checksum: Option<Data>, pub state_transition_upgrade_purpose_root: Option<Hash>, pub salt: Option<Data>,
}
Expand description

An object containing information about a transaction.

Fields§

§block_height: UInt§id: Hash§input_asset_ids: Option<Vec<Hash>>§input_contracts: Option<Vec<FixedSizeData<32>>>§input_contract_utxo_id: Option<Hash>§input_contract_balance_root: Option<Hash>§input_contract_state_root: Option<Hash>§input_contract_tx_pointer_block_height: Option<UInt>§input_contract_tx_pointer_tx_index: Option<UInt>§input_contract: Option<FixedSizeData<32>>§policies_tip: Option<UInt>§policies_witness_limit: Option<UInt>§policies_maturity: Option<UInt>§policies_max_fee: Option<UInt>§script_gas_limit: Option<UInt>§maturity: Option<UInt>§mint_amount: Option<UInt>§mint_asset_id: Option<Hash>§mint_gas_price: Option<UInt>§tx_pointer_block_height: Option<UInt>§tx_pointer_tx_index: Option<UInt>§tx_type: TransactionType§output_contract_input_index: Option<UInt>§output_contract_balance_root: Option<Hash>§output_contract_state_root: Option<Hash>§witnesses: Option<Data>§receipts_root: Option<Hash>§status: TransactionStatus§time: UInt§reason: Option<String>§script: Option<Data>§script_data: Option<Data>§bytecode_witness_index: Option<UInt>§bytecode_root: Option<Hash>§subsection_index: Option<UInt>§subsections_number: Option<UInt>§proof_set: Option<Data>§consensus_parameters_upgrade_purpose_witness_index: Option<UInt>§consensus_parameters_upgrade_purpose_checksum: Option<Data>§state_transition_upgrade_purpose_root: Option<Hash>§salt: Option<Data>

Trait Implementations§

Source§

impl Clone for Transaction

Source§

fn clone(&self) -> Transaction

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Transaction

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Transaction

Source§

fn default() -> Transaction

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Transaction

Source§

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 for Transaction

Source§

fn eq(&self, other: &Transaction) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Transaction

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for Transaction

Source§

impl StructuralPartialEq for Transaction

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,