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.12.1
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    #[serde(rename = "expires", skip_serializing_if = "Option::is_none")]
31    pub expires: Option<String>,
32}
33
34impl PatchedUserOAuthSourceConnectionRequest {
35    /// User source connection
36    pub fn new() -> PatchedUserOAuthSourceConnectionRequest {
37        PatchedUserOAuthSourceConnectionRequest {
38            user: None,
39            source: None,
40            identifier: None,
41            access_token: None,
42            expires: None,
43        }
44    }
45}