artifact-keeper-client 1.1.2

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.0.0-rc.3
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PreviewResultResponse {
    #[serde(rename = "matched_peers")]
    pub matched_peers: Vec<models::MatchedPeerSchema>,
    #[serde(rename = "matched_repositories")]
    pub matched_repositories: Vec<models::MatchedRepoSchema>,
    #[serde(rename = "subscription_count")]
    pub subscription_count: i32,
}

impl PreviewResultResponse {
    pub fn new(matched_peers: Vec<models::MatchedPeerSchema>, matched_repositories: Vec<models::MatchedRepoSchema>, subscription_count: i32) -> PreviewResultResponse {
        PreviewResultResponse {
            matched_peers,
            matched_repositories,
            subscription_count,
        }
    }
}