/*
 * Artifact Keeper API
 *
 * Enterprise artifact registry supporting 45+ package formats.
 *
 * The version of the OpenAPI document: 1.2.1
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PackageVersionResponse {
    #[serde(rename = "checksum_sha256")]
    pub checksum_sha256: String,
    #[serde(rename = "created_at")]
    pub created_at: String,
    #[serde(rename = "download_count")]
    pub download_count: i64,
    #[serde(rename = "size_bytes")]
    pub size_bytes: i64,
    #[serde(rename = "version")]
    pub version: String,
}

impl PackageVersionResponse {
    pub fn new(checksum_sha256: String, created_at: String, download_count: i64, size_bytes: i64, version: String) -> PackageVersionResponse {
        PackageVersionResponse {
            checksum_sha256,
            created_at,
            download_count,
            size_bytes,
            version,
        }
    }
}

