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 BlockOutputEntity {
    #[serde(rename = "address")]
    pub address: String,
    #[serde(rename = "height")]
    pub height: f32,
    #[serde(rename = "limit")]
    pub limit: f32,
    #[serde(rename = "mempool")]
    pub mempool: bool,
    #[serde(rename = "outputs")]
    pub outputs: Vec<crate::models::BlockOutputsEntity>,
    #[serde(rename = "viewkey")]
    pub viewkey: String,
}

impl BlockOutputEntity {
    pub fn new(address: String, height: f32, limit: f32, mempool: bool, outputs: Vec<crate::models::BlockOutputsEntity>, viewkey: String) -> BlockOutputEntity {
        BlockOutputEntity {
            address,
            height,
            limit,
            mempool,
            outputs,
            viewkey,
        }
    }
}