#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct TransactionBlock {
#[serde(rename = "age")]
pub age: String,
#[serde(rename = "hash")]
pub hash: String,
#[serde(rename = "height")]
pub height: f32,
#[serde(rename = "size")]
pub size: f32,
#[serde(rename = "timestamp")]
pub timestamp: f32,
#[serde(rename = "timestamp_utc")]
pub timestamp_utc: String,
#[serde(rename = "txs")]
pub txs: Vec<crate::models::TxnEntity>,
}
impl TransactionBlock {
pub fn new(age: String, hash: String, height: f32, size: f32, timestamp: f32, timestamp_utc: String, txs: Vec<crate::models::TxnEntity>) -> TransactionBlock {
TransactionBlock {
age,
hash,
height,
size,
timestamp,
timestamp_utc,
txs,
}
}
}