pub struct NormalTransaction {Show 20 fields
pub is_error: String,
pub block_number: BlockNumber,
pub time_stamp: String,
pub hash: GenesisOption<H256>,
pub nonce: Option<U256>,
pub block_hash: Option<U256>,
pub transaction_index: Option<u64>,
pub from: GenesisOption<Address>,
pub to: Option<Address>,
pub value: U256,
pub gas: U256,
pub gas_price: Option<U256>,
pub tx_receipt_status: String,
pub input: Bytes,
pub contract_address: Option<Address>,
pub gas_used: U256,
pub cumulative_gas_used: U256,
pub confirmations: u64,
pub method_id: Option<Bytes>,
pub function_name: Option<String>,
}
Expand description
The raw response from the transaction list API endpoint
Fields§
§is_error: String
§block_number: BlockNumber
§time_stamp: String
§hash: GenesisOption<H256>
§nonce: Option<U256>
§block_hash: Option<U256>
§transaction_index: Option<u64>
§from: GenesisOption<Address>
§to: Option<Address>
§value: U256
§gas: U256
§gas_price: Option<U256>
§tx_receipt_status: String
§input: Bytes
§contract_address: Option<Address>
§gas_used: U256
§cumulative_gas_used: U256
§confirmations: u64
§method_id: Option<Bytes>
§function_name: Option<String>
Trait Implementations§
Source§impl Clone for NormalTransaction
impl Clone for NormalTransaction
Source§fn clone(&self) -> NormalTransaction
fn clone(&self) -> NormalTransaction
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 NormalTransaction
impl Debug for NormalTransaction
Source§impl<'de> Deserialize<'de> for NormalTransaction
impl<'de> Deserialize<'de> for NormalTransaction
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
Auto Trait Implementations§
impl !Freeze for NormalTransaction
impl RefUnwindSafe for NormalTransaction
impl Send for NormalTransaction
impl Sync for NormalTransaction
impl Unpin for NormalTransaction
impl UnwindSafe for NormalTransaction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more