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 RawBlockMinerTx {
    #[serde(rename = "extra")]
    pub extra: Vec<f32>,
    #[serde(rename = "rct_signatures")]
    pub rct_signatures: Box<crate::models::RctSigEntity>,
    #[serde(rename = "unlock_time")]
    pub unlock_time: f32,
    #[serde(rename = "version")]
    pub version: f32,
    #[serde(rename = "vin", skip_serializing_if = "Option::is_none")]
    pub vin: Option<Vec<crate::models::RawBlockMinerVin>>,
    #[serde(rename = "vout", skip_serializing_if = "Option::is_none")]
    pub vout: Option<Vec<crate::models::RawBlockMinerVout>>,
}

impl RawBlockMinerTx {
    pub fn new(extra: Vec<f32>, rct_signatures: crate::models::RctSigEntity, unlock_time: f32, version: f32) -> RawBlockMinerTx {
        RawBlockMinerTx {
            extra,
            rct_signatures: Box::new(rct_signatures),
            unlock_time,
            version,
            vin: None,
            vout: None,
        }
    }
}