/*
 * 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 RescanForInventoryResponse {
    /// Number of artifacts whose latest scan had no inventory rows and for which a rescan was enqueued in this call.
    #[serde(rename = "artifacts_enqueued")]
    pub artifacts_enqueued: i64,
    /// Echo of the requested (or defaulted) limit, useful for clients driving the loop programmatically.
    #[serde(rename = "limit")]
    pub limit: i64,
}

impl RescanForInventoryResponse {
    pub fn new(artifacts_enqueued: i64, limit: i64) -> RescanForInventoryResponse {
        RescanForInventoryResponse {
            artifacts_enqueued,
            limit,
        }
    }
}

