artifact-keeper-client 1.2.1

Rust client for the Artifact Keeper REST API
Documentation
/*
 * 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 CompleteResponse {
    #[serde(rename = "artifact_id")]
    pub artifact_id: uuid::Uuid,
    #[serde(rename = "checksum_sha256")]
    pub checksum_sha256: String,
    #[serde(rename = "path")]
    pub path: String,
    #[serde(rename = "size")]
    pub size: i64,
}

impl CompleteResponse {
    pub fn new(artifact_id: uuid::Uuid, checksum_sha256: String, path: String, size: i64) -> CompleteResponse {
        CompleteResponse {
            artifact_id,
            checksum_sha256,
            path,
            size,
        }
    }
}