harbor_api/models/
search.rs

1/*
2 * Harbor API
3 *
4 * These APIs provide services for manipulating Harbor project.
5 *
6 * The version of the OpenAPI document: 2.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct Search {
16    /// Search results of the projects that matched the filter keywords.
17    #[serde(rename = "project", skip_serializing_if = "Option::is_none")]
18    pub project: Option<Vec<models::Project>>,
19    /// Search results of the repositories that matched the filter keywords.
20    #[serde(rename = "repository", skip_serializing_if = "Option::is_none")]
21    pub repository: Option<Vec<models::SearchRepository>>,
22}
23
24impl Search {
25    pub fn new() -> Search {
26        Search {
27            project: None,
28            repository: None,
29        }
30    }
31}
32