/*
 * 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 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,
        }
    }
}

