pub struct TransactionWithStatusResponse {
pub transaction: Option<ResponseFormat<TransactionView>>,
pub cycles: Option<Cycle>,
pub time_added_to_pool: Option<Uint64>,
pub tx_status: TxStatus,
}Expand description
The JSON view of a transaction as well as its status.
Fields§
§transaction: Option<ResponseFormat<TransactionView>>The transaction.
cycles: Option<Cycle>The transaction consumed cycles.
time_added_to_pool: Option<Uint64>If the transaction is in tx-pool, time_added_to_pool represent when it enters the tx-pool. unit: Millisecond
tx_status: TxStatusThe Transaction status.
Implementations§
source§impl TransactionWithStatusResponse
impl TransactionWithStatusResponse
sourcepub fn from(
t: TransactionWithStatus,
inner_type: ResponseFormatInnerType
) -> Self
pub fn from( t: TransactionWithStatus, inner_type: ResponseFormatInnerType ) -> Self
Transpose tx_pool::TransactionWithStatus to TransactionWithStatusResponse
according to the type of inner_type
Trait Implementations§
source§impl<'de> Deserialize<'de> for TransactionWithStatusResponse
impl<'de> Deserialize<'de> for TransactionWithStatusResponse
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 Hash for TransactionWithStatusResponse
impl Hash for TransactionWithStatusResponse
source§impl PartialEq<TransactionWithStatusResponse> for TransactionWithStatusResponse
impl PartialEq<TransactionWithStatusResponse> for TransactionWithStatusResponse
source§fn eq(&self, other: &TransactionWithStatusResponse) -> bool
fn eq(&self, other: &TransactionWithStatusResponse) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for TransactionWithStatusResponse
impl StructuralEq for TransactionWithStatusResponse
impl StructuralPartialEq for TransactionWithStatusResponse
Auto Trait Implementations§
impl RefUnwindSafe for TransactionWithStatusResponse
impl Send for TransactionWithStatusResponse
impl Sync for TransactionWithStatusResponse
impl Unpin for TransactionWithStatusResponse
impl UnwindSafe for TransactionWithStatusResponse
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