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