harbor-api 2.0.0

These APIs provide services for manipulating Harbor project.
Documentation
/*
 * Harbor API
 *
 * These APIs provide services for manipulating Harbor project.
 *
 * The version of the OpenAPI document: 2.0
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Search {
    /// Search results of the projects that matched the filter keywords.
    #[serde(rename = "project", skip_serializing_if = "Option::is_none")]
    pub project: Option<Vec<models::Project>>,
    /// Search results of the repositories that matched the filter keywords.
    #[serde(rename = "repository", skip_serializing_if = "Option::is_none")]
    pub repository: Option<Vec<models::SearchRepository>>,
}

impl Search {
    pub fn new() -> Search {
        Search {
            project: None,
            repository: None,
        }
    }
}