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 TransactionsEntity {
    #[serde(rename = "blocks")]
    pub blocks: Vec<crate::models::TransactionBlock>,
    #[serde(rename = "current_height")]
    pub current_height: f32,
    #[serde(rename = "limit")]
    pub limit: f32,
    #[serde(rename = "page")]
    pub page: f32,
    #[serde(rename = "total_page_no")]
    pub total_page_no: f32,
}

impl TransactionsEntity {
    pub fn new(blocks: Vec<crate::models::TransactionBlock>, current_height: f32, limit: f32, page: f32, total_page_no: f32) -> TransactionsEntity {
        TransactionsEntity {
            blocks,
            current_height,
            limit,
            page,
            total_page_no,
        }
    }
}