#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct MempoolEntity {
#[serde(rename = "limit")]
pub limit: f32,
#[serde(rename = "page")]
pub page: f32,
#[serde(rename = "total_page_no")]
pub total_page_no: f32,
#[serde(rename = "txs", skip_serializing_if = "Option::is_none")]
pub txs: Option<Vec<crate::models::TxnEntity>>,
#[serde(rename = "txs_no")]
pub txs_no: f32,
}
impl MempoolEntity {
pub fn new(limit: f32, page: f32, total_page_no: f32, txs_no: f32) -> MempoolEntity {
MempoolEntity {
limit,
page,
total_page_no,
txs: None,
txs_no,
}
}
}