/*
 * Artifact Keeper API
 *
 * REST API for Artifact Keeper, an open-source universal artifact registry. Covers user management, repositories, artifacts, search, security scanning, SBOM, dependency tracking, SSO, analytics, monitoring, telemetry, lifecycle policies, plugins, edge nodes, migration, and administration. Format-specific protocol endpoints (npm, PyPI, Maven, Docker/OCI, etc.) are not included; those follow their respective upstream specifications.
 *
 * The version of the OpenAPI document: 1.0.0-a2
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DiffBuilds200Response {
    #[serde(rename = "build_a")]
    pub build_a: uuid::Uuid,
    #[serde(rename = "build_b")]
    pub build_b: uuid::Uuid,
    #[serde(rename = "added")]
    pub added: Vec<models::Artifact>,
    #[serde(rename = "removed")]
    pub removed: Vec<models::Artifact>,
    #[serde(rename = "modified")]
    pub modified: Vec<models::Artifact>,
}

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

