pub struct TransactionWithStatusResponse {
pub transaction: Option<ResponseFormat<TransactionView>>,
pub cycles: Option<Cycle>,
pub time_added_to_pool: Option<Uint64>,
pub tx_status: TxStatus,
pub fee: Option<Capacity>,
pub min_replace_fee: Option<Capacity>,
}
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: TxStatus
The Transaction status.
fee: Option<Capacity>
The transaction fee of the transaction
min_replace_fee: Option<Capacity>
The minimal fee required to replace this transaction
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 JsonSchema for TransactionWithStatusResponse
impl JsonSchema for TransactionWithStatusResponse
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl PartialEq for TransactionWithStatusResponse
impl PartialEq for TransactionWithStatusResponse
Source§fn eq(&self, other: &TransactionWithStatusResponse) -> bool
fn eq(&self, other: &TransactionWithStatusResponse) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for TransactionWithStatusResponse
impl StructuralPartialEq for TransactionWithStatusResponse
Auto Trait Implementations§
impl !Freeze for TransactionWithStatusResponse
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