#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct RawBlockEntity {
#[serde(rename = "major_version")]
pub major_version: f32,
#[serde(rename = "miner_tx")]
pub miner_tx: Box<crate::models::RawBlockMinerTx>,
#[serde(rename = "minor_version")]
pub minor_version: f32,
#[serde(rename = "nonce")]
pub nonce: f32,
#[serde(rename = "prev_id")]
pub prev_id: String,
#[serde(rename = "timestamp")]
pub timestamp: f32,
#[serde(rename = "tx_hashes")]
pub tx_hashes: Vec<String>,
}
impl RawBlockEntity {
pub fn new(major_version: f32, miner_tx: crate::models::RawBlockMinerTx, minor_version: f32, nonce: f32, prev_id: String, timestamp: f32, tx_hashes: Vec<String>) -> RawBlockEntity {
RawBlockEntity {
major_version,
miner_tx: Box::new(miner_tx),
minor_version,
nonce,
prev_id,
timestamp,
tx_hashes,
}
}
}