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};

/// RunNowResponse : Result of `POST /:id/repositories/:repo_id/sync` (run-now trigger).
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RunNowResponse {
    #[serde(rename = "status")]
    pub status: String,
    #[serde(rename = "tasks_queued")]
    pub tasks_queued: i64,
}

impl RunNowResponse {
    /// Result of `POST /:id/repositories/:repo_id/sync` (run-now trigger).
    pub fn new(status: String, tasks_queued: i64) -> RunNowResponse {
        RunNowResponse {
            status,
            tasks_queued,
        }
    }
}