authentik_client/models/
patched_user_ldap_source_connection_request.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.8.4
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// PatchedUserLdapSourceConnectionRequest : User source connection
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PatchedUserLdapSourceConnectionRequest {
17    #[serde(rename = "user", skip_serializing_if = "Option::is_none")]
18    pub user: Option<i32>,
19    #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
20    pub source: Option<uuid::Uuid>,
21    #[serde(rename = "identifier", skip_serializing_if = "Option::is_none")]
22    pub identifier: Option<String>,
23}
24
25impl PatchedUserLdapSourceConnectionRequest {
26    /// User source connection
27    pub fn new() -> PatchedUserLdapSourceConnectionRequest {
28        PatchedUserLdapSourceConnectionRequest {
29            user: None,
30            source: None,
31            identifier: None,
32        }
33    }
34}