harbor_api/models/
user_group.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 UserGroup {
16    /// The ID of the user group
17    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
18    pub id: Option<i32>,
19    /// The name of the user group
20    #[serde(rename = "group_name", skip_serializing_if = "Option::is_none")]
21    pub group_name: Option<String>,
22    /// The group type, 1 for LDAP group, 2 for HTTP group, 3 for OIDC group.
23    #[serde(rename = "group_type", skip_serializing_if = "Option::is_none")]
24    pub group_type: Option<i32>,
25    /// The DN of the LDAP group if group type is 1 (LDAP group).
26    #[serde(rename = "ldap_group_dn", skip_serializing_if = "Option::is_none")]
27    pub ldap_group_dn: Option<String>,
28}
29
30impl UserGroup {
31    pub fn new() -> UserGroup {
32        UserGroup {
33            id: None,
34            group_name: None,
35            group_type: None,
36            ldap_group_dn: None,
37        }
38    }
39}
40