pub struct MempoolTransactionResponse {
pub transaction: Transaction,
pub metadata: Option<Value>,
}
Expand description
MempoolTransactionResponse : A MempoolTransactionResponse contains an estimate of a mempool transaction. It may not be possible to know the full impact of a transaction in the mempool (ex: fee paid).
Fields§
§transaction: Transaction
§metadata: Option<Value>
Implementations§
source§impl MempoolTransactionResponse
impl MempoolTransactionResponse
sourcepub fn new(transaction: Transaction) -> MempoolTransactionResponse
pub fn new(transaction: Transaction) -> MempoolTransactionResponse
A MempoolTransactionResponse contains an estimate of a mempool transaction. It may not be possible to know the full impact of a transaction in the mempool (ex: fee paid).
Trait Implementations§
source§impl Clone for MempoolTransactionResponse
impl Clone for MempoolTransactionResponse
source§fn clone(&self) -> MempoolTransactionResponse
fn clone(&self) -> MempoolTransactionResponse
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 MempoolTransactionResponse
impl Debug for MempoolTransactionResponse
source§impl Default for MempoolTransactionResponse
impl Default for MempoolTransactionResponse
source§fn default() -> MempoolTransactionResponse
fn default() -> MempoolTransactionResponse
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MempoolTransactionResponse
impl<'de> Deserialize<'de> for MempoolTransactionResponse
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 PartialEq<MempoolTransactionResponse> for MempoolTransactionResponse
impl PartialEq<MempoolTransactionResponse> for MempoolTransactionResponse
source§fn eq(&self, other: &MempoolTransactionResponse) -> bool
fn eq(&self, other: &MempoolTransactionResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for MempoolTransactionResponse
impl StructuralEq for MempoolTransactionResponse
impl StructuralPartialEq for MempoolTransactionResponse
Auto Trait Implementations§
impl RefUnwindSafe for MempoolTransactionResponse
impl Send for MempoolTransactionResponse
impl Sync for MempoolTransactionResponse
impl Unpin for MempoolTransactionResponse
impl UnwindSafe for MempoolTransactionResponse
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