harbor_api/models/
user_profile.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 UserProfile {
16    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
17    pub email: Option<String>,
18    #[serde(rename = "realname", skip_serializing_if = "Option::is_none")]
19    pub realname: Option<String>,
20    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
21    pub comment: Option<String>,
22}
23
24impl UserProfile {
25    pub fn new() -> UserProfile {
26        UserProfile {
27            email: None,
28            realname: None,
29            comment: None,
30        }
31    }
32}
33