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 VersionEntity {
    #[serde(rename = "api")]
    pub api: f32,
    #[serde(rename = "blockchain_height")]
    pub blockchain_height: f32,
    #[serde(rename = "git_branch_name")]
    pub git_branch_name: String,
    #[serde(rename = "last_git_commit_date")]
    pub last_git_commit_date: String,
    #[serde(rename = "last_git_commit_hash")]
    pub last_git_commit_hash: String,
    #[serde(rename = "monero_version_full")]
    pub monero_version_full: String,
}

impl VersionEntity {
    pub fn new(api: f32, blockchain_height: f32, git_branch_name: String, last_git_commit_date: String, last_git_commit_hash: String, monero_version_full: String) -> VersionEntity {
        VersionEntity {
            api,
            blockchain_height,
            git_branch_name,
            last_git_commit_date,
            last_git_commit_hash,
            monero_version_full,
        }
    }
}