/*
 * 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 RescanForInventoryRequest {
    /// Maximum number of artifacts to enqueue in this call. Operators run the endpoint repeatedly to drain large backfills without stalling a single HTTP worker; the handler returns the actual number enqueued so the caller can detect when work is done. Defaults to 100. Hard-capped at 1000 to avoid pathological inputs.
    #[serde(rename = "limit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub limit: Option<Option<i64>>,
}

impl RescanForInventoryRequest {
    pub fn new() -> RescanForInventoryRequest {
        RescanForInventoryRequest {
            limit: None,
        }
    }
}

