Skip to main content

akeyless_api/models/
ldap_access_rules.rs

1/*
2 * Akeyless API
3 *
4 * The purpose of this application is to provide access to Akeyless API.
5 *
6 * The version of the OpenAPI document: 3.0
7 * Contact: support@akeyless.io
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 LdapAccessRules {
16    #[serde(rename = "alg", skip_serializing_if = "Option::is_none")]
17    pub alg: Option<String>,
18    /// Generate public/private key (the private key is required for the LDAP Auth Config in the Akeyless Gateway)
19    #[serde(rename = "gen_key_pair", skip_serializing_if = "Option::is_none")]
20    pub gen_key_pair: Option<String>,
21    /// The public key value of LDAP.
22    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
23    pub key: Option<String>,
24    /// A unique identifier to distinguish different users
25    #[serde(rename = "unique_identifier", skip_serializing_if = "Option::is_none")]
26    pub unique_identifier: Option<String>,
27}
28
29impl LdapAccessRules {
30    pub fn new() -> LdapAccessRules {
31        LdapAccessRules {
32            alg: None,
33            gen_key_pair: None,
34            key: None,
35            unique_identifier: None,
36        }
37    }
38}
39