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 SearchEntity {
    #[serde(rename = "block_height")]
    pub block_height: f32,
    #[serde(rename = "coinbase")]
    pub coinbase: bool,
    #[serde(rename = "confirmations")]
    pub confirmations: f32,
    #[serde(rename = "current_height")]
    pub current_height: f32,
    #[serde(rename = "extra")]
    pub extra: String,
    #[serde(rename = "inputs")]
    pub inputs: Vec<crate::models::InputsEntity>,
    #[serde(rename = "mixin")]
    pub mixin: f32,
    #[serde(rename = "outputs")]
    pub outputs: Vec<crate::models::OutputEntity>,
    #[serde(rename = "payment_id", skip_serializing_if = "Option::is_none")]
    pub payment_id: Option<String>,
    #[serde(rename = "payment_id8", skip_serializing_if = "Option::is_none")]
    pub payment_id8: Option<String>,
    #[serde(rename = "rct_type")]
    pub rct_type: f32,
    #[serde(rename = "timestamp")]
    pub timestamp: f32,
    #[serde(rename = "timestamp_utc")]
    pub timestamp_utc: String,
    #[serde(rename = "title")]
    pub title: String,
    #[serde(rename = "tx_fee")]
    pub tx_fee: f32,
    #[serde(rename = "tx_hash")]
    pub tx_hash: String,
    #[serde(rename = "tx_size")]
    pub tx_size: f32,
    #[serde(rename = "tx_version")]
    pub tx_version: f32,
    #[serde(rename = "xmr_inputs")]
    pub xmr_inputs: f32,
    #[serde(rename = "xmr_outputs")]
    pub xmr_outputs: f32,
}

impl SearchEntity {
    pub fn new(block_height: f32, coinbase: bool, confirmations: f32, current_height: f32, extra: String, inputs: Vec<crate::models::InputsEntity>, mixin: f32, outputs: Vec<crate::models::OutputEntity>, rct_type: f32, timestamp: f32, timestamp_utc: String, title: String, tx_fee: f32, tx_hash: String, tx_size: f32, tx_version: f32, xmr_inputs: f32, xmr_outputs: f32) -> SearchEntity {
        SearchEntity {
            block_height,
            coinbase,
            confirmations,
            current_height,
            extra,
            inputs,
            mixin,
            outputs,
            payment_id: None,
            payment_id8: None,
            rct_type,
            timestamp,
            timestamp_utc,
            title,
            tx_fee,
            tx_hash,
            tx_size,
            tx_version,
            xmr_inputs,
            xmr_outputs,
        }
    }
}