rosetta_types/
mempool_transaction_request.rs

1/*
2 * Rosetta
3 *
4 * Build Once. Integrate Your Blockchain Everywhere.
5 *
6 * The version of the OpenAPI document: 1.4.13
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// MempoolTransactionRequest : A MempoolTransactionRequest is utilized to retrieve a transaction from the mempool.
12
13#[derive(Clone, Debug, PartialEq, Eq, Default, Serialize, Deserialize)]
14pub struct MempoolTransactionRequest {
15    #[serde(rename = "network_identifier")]
16    pub network_identifier: crate::NetworkIdentifier,
17    #[serde(rename = "transaction_identifier")]
18    pub transaction_identifier: crate::TransactionIdentifier,
19}
20
21impl MempoolTransactionRequest {
22    /// A MempoolTransactionRequest is utilized to retrieve a transaction from the mempool.
23    pub fn new(
24        network_identifier: crate::NetworkIdentifier,
25        transaction_identifier: crate::TransactionIdentifier,
26    ) -> MempoolTransactionRequest {
27        MempoolTransactionRequest {
28            network_identifier,
29            transaction_identifier,
30        }
31    }
32}