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 Commit {
    #[serde(rename = "id")]
    pub id: String,
    #[serde(rename = "link")]
    pub link: Box<crate::models::CommitLink>,
    #[serde(rename = "title")]
    pub title: String,
    #[serde(rename = "updated")]
    pub updated: String,
    #[serde(rename = "media:thumbnail")]
    pub mediathumbnail: Box<crate::models::CommitMediaThumbnail>,
    #[serde(rename = "author")]
    pub author: Box<crate::models::CommitAuthor>,
    #[serde(rename = "summary")]
    pub summary: Box<crate::models::CommitSummary>,
}

impl Commit {
    pub fn new(id: String, link: crate::models::CommitLink, title: String, updated: String, mediathumbnail: crate::models::CommitMediaThumbnail, author: crate::models::CommitAuthor, summary: crate::models::CommitSummary) -> Commit {
        Commit {
            id,
            link: Box::new(link),
            title,
            updated,
            mediathumbnail: Box::new(mediathumbnail),
            author: Box::new(author),
            summary: Box::new(summary),
        }
    }
}