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

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BuildArtifactDiff {
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "new_checksum")]
    pub new_checksum: String,
    #[serde(rename = "new_size_bytes")]
    pub new_size_bytes: i64,
    #[serde(rename = "old_checksum")]
    pub old_checksum: String,
    #[serde(rename = "old_size_bytes")]
    pub old_size_bytes: i64,
    #[serde(rename = "path")]
    pub path: String,
}

impl BuildArtifactDiff {
    pub fn new(name: String, new_checksum: String, new_size_bytes: i64, old_checksum: String, old_size_bytes: i64, path: String) -> BuildArtifactDiff {
        BuildArtifactDiff {
            name,
            new_checksum,
            new_size_bytes,
            old_checksum,
            old_size_bytes,
            path,
        }
    }
}

