/*
 * 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 BuildDiffResponse {
    #[serde(rename = "added")]
    pub added: Vec<models::BuildArtifact>,
    #[serde(rename = "build_a")]
    pub build_a: uuid::Uuid,
    #[serde(rename = "build_b")]
    pub build_b: uuid::Uuid,
    #[serde(rename = "modified")]
    pub modified: Vec<models::BuildArtifactDiff>,
    #[serde(rename = "removed")]
    pub removed: Vec<models::BuildArtifact>,
}

impl BuildDiffResponse {
    pub fn new(added: Vec<models::BuildArtifact>, build_a: uuid::Uuid, build_b: uuid::Uuid, modified: Vec<models::BuildArtifactDiff>, removed: Vec<models::BuildArtifact>) -> BuildDiffResponse {
        BuildDiffResponse {
            added,
            build_a,
            build_b,
            modified,
            removed,
        }
    }
}

