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 CheckSummary {
    #[serde(rename = "check_type")]
    pub check_type: String,
    #[serde(rename = "completed_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub completed_at: Option<Option<String>>,
    #[serde(rename = "issues_count")]
    pub issues_count: i32,
    #[serde(rename = "passed", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub passed: Option<Option<bool>>,
    #[serde(rename = "score", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub score: Option<Option<i32>>,
    #[serde(rename = "status")]
    pub status: String,
}

impl CheckSummary {
    pub fn new(check_type: String, issues_count: i32, status: String) -> CheckSummary {
        CheckSummary {
            check_type,
            completed_at: None,
            issues_count,
            passed: None,
            score: None,
            status,
        }
    }
}