lethean 1.2.2

Lethean VPN Marketplace API
Documentation
/*
 * Lethean VPN
 *
 * Distributed Virtual Private Marketplace
 *
 * The version of the OpenAPI document: 1.2.1
 * Contact: contact@lethean.io
 * Generated by: https://openapi-generator.tech
 */




#[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,
        }
    }
}