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 BlockOutputsEntity {
    #[serde(rename = "amount")]
    pub amount: f32,
    #[serde(rename = "block_no")]
    pub block_no: f32,
    #[serde(rename = "in_mempool")]
    pub in_mempool: bool,
    #[serde(rename = "output_idx")]
    pub output_idx: f32,
    #[serde(rename = "output_pubkey")]
    pub output_pubkey: String,
    #[serde(rename = "payment_id", skip_serializing_if = "Option::is_none")]
    pub payment_id: Option<String>,
    #[serde(rename = "tx_hash")]
    pub tx_hash: String,
}

impl BlockOutputsEntity {
    pub fn new(amount: f32, block_no: f32, in_mempool: bool, output_idx: f32, output_pubkey: String, tx_hash: String) -> BlockOutputsEntity {
        BlockOutputsEntity {
            amount,
            block_no,
            in_mempool,
            output_idx,
            output_pubkey,
            payment_id: None,
            tx_hash,
        }
    }
}