authentik_client/models/
patched_user_o_auth_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/// PatchedUserOAuthSourceConnectionRequest : User source connection
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PatchedUserOAuthSourceConnectionRequest {
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    #[serde(
24        rename = "access_token",
25        default,
26        with = "::serde_with::rust::double_option",
27        skip_serializing_if = "Option::is_none"
28    )]
29    pub access_token: Option<Option<String>>,
30}
31
32impl PatchedUserOAuthSourceConnectionRequest {
33    /// User source connection
34    pub fn new() -> PatchedUserOAuthSourceConnectionRequest {
35        PatchedUserOAuthSourceConnectionRequest {
36            user: None,
37            source: None,
38            identifier: None,
39            access_token: None,
40        }
41    }
42}