harbor_api/models/
user_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 UserSearch {
16    /// The ID of the user.
17    #[serde(rename = "user_id", skip_serializing_if = "Option::is_none")]
18    pub user_id: Option<i32>,
19    #[serde(rename = "username", skip_serializing_if = "Option::is_none")]
20    pub username: Option<String>,
21}
22
23impl UserSearch {
24    pub fn new() -> UserSearch {
25        UserSearch {
26            user_id: None,
27            username: None,
28        }
29    }
30}
31