fusionauth_rust_client/models/
identity_provider_link.rs

1/*
2 * FusionAuth API
3 *
4 * This is a FusionAuth server. Find out more at [https://fusionauth.io](https://fusionauth.io). You need to [set up an API key](https://fusionauth.io/docs/v1/tech/apis/authentication#managing-api-keys) in the FusionAuth instance you are using to test out the API calls.
5 *
6 * The version of the OpenAPI document: 1.60.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// IdentityProviderLink : 
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct IdentityProviderLink {
17    #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
18    pub data: Option<std::collections::HashMap<String, serde_json::Value>>,
19    #[serde(rename = "displayName", skip_serializing_if = "Option::is_none")]
20    pub display_name: Option<String>,
21    #[serde(rename = "identityProviderId", skip_serializing_if = "Option::is_none")]
22    pub identity_provider_id: Option<uuid::Uuid>,
23    #[serde(rename = "identityProviderName", skip_serializing_if = "Option::is_none")]
24    pub identity_provider_name: Option<String>,
25    #[serde(rename = "identityProviderType", skip_serializing_if = "Option::is_none")]
26    pub identity_provider_type: Option<models::IdentityProviderType>,
27    #[serde(rename = "identityProviderUserId", skip_serializing_if = "Option::is_none")]
28    pub identity_provider_user_id: Option<String>,
29    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
30    #[serde(rename = "insertInstant", skip_serializing_if = "Option::is_none")]
31    pub insert_instant: Option<i64>,
32    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
33    #[serde(rename = "lastLoginInstant", skip_serializing_if = "Option::is_none")]
34    pub last_login_instant: Option<i64>,
35    #[serde(rename = "tenantId", skip_serializing_if = "Option::is_none")]
36    pub tenant_id: Option<uuid::Uuid>,
37    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
38    pub token: Option<String>,
39    #[serde(rename = "userId", skip_serializing_if = "Option::is_none")]
40    pub user_id: Option<uuid::Uuid>,
41}
42
43impl IdentityProviderLink {
44    /// 
45    pub fn new() -> IdentityProviderLink {
46        IdentityProviderLink {
47            data: None,
48            display_name: None,
49            identity_provider_id: None,
50            identity_provider_name: None,
51            identity_provider_type: None,
52            identity_provider_user_id: None,
53            insert_instant: None,
54            last_login_instant: None,
55            tenant_id: None,
56            token: None,
57            user_id: None,
58        }
59    }
60}
61