#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct TransactionsEntity {
#[serde(rename = "blocks")]
pub blocks: Vec<crate::models::TransactionBlock>,
#[serde(rename = "current_height")]
pub current_height: f32,
#[serde(rename = "limit")]
pub limit: f32,
#[serde(rename = "page")]
pub page: f32,
#[serde(rename = "total_page_no")]
pub total_page_no: f32,
}
impl TransactionsEntity {
pub fn new(blocks: Vec<crate::models::TransactionBlock>, current_height: f32, limit: f32, page: f32, total_page_no: f32) -> TransactionsEntity {
TransactionsEntity {
blocks,
current_height,
limit,
page,
total_page_no,
}
}
}