/*
 * 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 BulkEvaluationResponse {
    #[serde(rename = "failed")]
    pub failed: i32,
    #[serde(rename = "passed")]
    pub passed: i32,
    #[serde(rename = "results")]
    pub results: Vec<models::ArtifactEvalEntry>,
    #[serde(rename = "rule_id")]
    pub rule_id: uuid::Uuid,
    #[serde(rename = "rule_name")]
    pub rule_name: String,
    #[serde(rename = "total_artifacts")]
    pub total_artifacts: i32,
}

impl BulkEvaluationResponse {
    pub fn new(failed: i32, passed: i32, results: Vec<models::ArtifactEvalEntry>, rule_id: uuid::Uuid, rule_name: String, total_artifacts: i32) -> BulkEvaluationResponse {
        BulkEvaluationResponse {
            failed,
            passed,
            results,
            rule_id,
            rule_name,
            total_artifacts,
        }
    }
}

