authentik_rust/models/
patched_ldap_property_mapping_request.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2024.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13/// PatchedLdapPropertyMappingRequest : LDAP PropertyMapping Serializer
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct PatchedLdapPropertyMappingRequest {
16    /// Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
17    #[serde(rename = "managed", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
18    pub managed: Option<Option<String>>,
19    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
20    pub name: Option<String>,
21    #[serde(rename = "expression", skip_serializing_if = "Option::is_none")]
22    pub expression: Option<String>,
23    #[serde(rename = "object_field", skip_serializing_if = "Option::is_none")]
24    pub object_field: Option<String>,
25}
26
27impl PatchedLdapPropertyMappingRequest {
28    /// LDAP PropertyMapping Serializer
29    pub fn new() -> PatchedLdapPropertyMappingRequest {
30        PatchedLdapPropertyMappingRequest {
31            managed: None,
32            name: None,
33            expression: None,
34            object_field: None,
35        }
36    }
37}
38