harbor_api/models/
ldap_user.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 LdapUser {
16    /// ldap username.
17    #[serde(rename = "username", skip_serializing_if = "Option::is_none")]
18    pub username: Option<String>,
19    /// The user realname from \"uid\" or \"cn\" attribute.
20    #[serde(rename = "realname", skip_serializing_if = "Option::is_none")]
21    pub realname: Option<String>,
22    /// The user email address from \"mail\" or \"email\" attribute.
23    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
24    pub email: Option<String>,
25}
26
27impl LdapUser {
28    pub fn new() -> LdapUser {
29        LdapUser {
30            username: None,
31            realname: None,
32            email: None,
33        }
34    }
35}
36