rosetta_types/
mempool_response.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/// MempoolResponse : A MempoolResponse contains all transaction identifiers in the mempool for a particular network_identifier.
12
13#[derive(Clone, Debug, PartialEq, Eq, Default, Serialize, Deserialize)]
14pub struct MempoolResponse {
15    #[serde(rename = "transaction_identifiers")]
16    pub transaction_identifiers: Vec<crate::TransactionIdentifier>,
17}
18
19impl MempoolResponse {
20    /// A MempoolResponse contains all transaction identifiers in the mempool for a particular network_identifier.
21    pub fn new(transaction_identifiers: Vec<crate::TransactionIdentifier>) -> MempoolResponse {
22        MempoolResponse {
23            transaction_identifiers,
24        }
25    }
26}