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 duplicate 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<MempoolTransactionResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MempoolTransactionResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for MempoolTransactionResponse
impl Serialize for MempoolTransactionResponse
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for MempoolTransactionResponse
impl StructuralPartialEq for MempoolTransactionResponse
Auto Trait Implementations§
impl Freeze for MempoolTransactionResponse
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