Skip to main content

harbor_api/models/
ldap_failed_import_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 LdapFailedImportUser {
16    /// the uid can't add to system.
17    #[serde(rename = "uid", skip_serializing_if = "Option::is_none")]
18    pub uid: Option<String>,
19    /// fail reason.
20    #[serde(rename = "error", skip_serializing_if = "Option::is_none")]
21    pub error: Option<String>,
22}
23
24impl LdapFailedImportUser {
25    pub fn new() -> LdapFailedImportUser {
26        LdapFailedImportUser {
27            uid: None,
28            error: None,
29        }
30    }
31}
32