pub struct ApiTransactionResult {Show 30 fields
pub kind: String,
pub hash: Option<String>,
pub nonce: u64,
pub round: u64,
pub epoch: u64,
pub value: String,
pub receiver: Bech32Address,
pub sender: Bech32Address,
pub gas_price: u64,
pub gas_limit: u64,
pub gas_used: u64,
pub signature: String,
pub source_shard: u32,
pub destination_shard: u32,
pub block_nonce: u64,
pub block_hash: String,
pub notarized_at_source_in_meta_nonce: Option<u64>,
pub notarized_at_source_in_meta_hash: Option<String>,
pub notarized_at_destination_in_meta_nonce: Option<u64>,
pub notarized_at_destination_in_meta_hash: Option<String>,
pub processing_type_on_destination: String,
pub miniblock_type: String,
pub miniblock_hash: String,
pub timestamp: u64,
pub data: Option<String>,
pub status: String,
pub hyperblock_nonce: Option<u64>,
pub hyperblock_hash: Option<String>,
pub smart_contract_results: Vec<ApiSmartContractResult>,
pub logs: Option<ApiLogs>,
}Expand description
Data transfer object which will be returned on the get transaction by hash endpoint.
Corresponds to ApiTransactionResult in mx-chain-core-go.
Fields§
§kind: String§hash: Option<String>§nonce: u64§round: u64§epoch: u64§value: String§receiver: Bech32Address§sender: Bech32Address§gas_price: u64§gas_limit: u64§gas_used: u64§signature: String§source_shard: u32§destination_shard: u32§block_nonce: u64§block_hash: String§notarized_at_source_in_meta_nonce: Option<u64>§notarized_at_source_in_meta_hash: Option<String>§notarized_at_destination_in_meta_nonce: Option<u64>§notarized_at_destination_in_meta_hash: Option<String>§processing_type_on_destination: String§miniblock_type: String§miniblock_hash: String§timestamp: u64§data: Option<String>§status: String§hyperblock_nonce: Option<u64>§hyperblock_hash: Option<String>§smart_contract_results: Vec<ApiSmartContractResult>§logs: Option<ApiLogs>Trait Implementations§
Source§impl Clone for ApiTransactionResult
impl Clone for ApiTransactionResult
Source§fn clone(&self) -> ApiTransactionResult
fn clone(&self) -> ApiTransactionResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ApiTransactionResult
impl Debug for ApiTransactionResult
Source§impl Default for ApiTransactionResult
impl Default for ApiTransactionResult
Source§fn default() -> ApiTransactionResult
fn default() -> ApiTransactionResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApiTransactionResult
impl<'de> Deserialize<'de> for ApiTransactionResult
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 ApiTransactionResult
impl RefUnwindSafe for ApiTransactionResult
impl Send for ApiTransactionResult
impl Sync for ApiTransactionResult
impl Unpin for ApiTransactionResult
impl UnsafeUnpin for ApiTransactionResult
impl UnwindSafe for ApiTransactionResult
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> 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