fusionauth_rust_client/models/
facebook_identity_provider.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/// FacebookIdentityProvider : Facebook social login provider.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FacebookIdentityProvider {
17    #[serde(rename = "appId", skip_serializing_if = "Option::is_none")]
18    pub app_id: Option<String>,
19    #[serde(rename = "buttonText", skip_serializing_if = "Option::is_none")]
20    pub button_text: Option<String>,
21    #[serde(rename = "client_secret", skip_serializing_if = "Option::is_none")]
22    pub client_secret: Option<String>,
23    #[serde(rename = "fields", skip_serializing_if = "Option::is_none")]
24    pub fields: Option<String>,
25    #[serde(rename = "loginMethod", skip_serializing_if = "Option::is_none")]
26    pub login_method: Option<models::IdentityProviderLoginMethod>,
27    #[serde(rename = "permissions", skip_serializing_if = "Option::is_none")]
28    pub permissions: Option<String>,
29    #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
30    pub data: Option<std::collections::HashMap<String, serde_json::Value>>,
31    #[serde(rename = "applicationConfiguration", skip_serializing_if = "Option::is_none")]
32    pub application_configuration: Option<std::collections::HashMap<String, models::FacebookApplicationConfiguration>>,
33    #[serde(rename = "debug", skip_serializing_if = "Option::is_none")]
34    pub debug: Option<bool>,
35    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
36    pub id: Option<uuid::Uuid>,
37    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
38    #[serde(rename = "insertInstant", skip_serializing_if = "Option::is_none")]
39    pub insert_instant: Option<i64>,
40    #[serde(rename = "lambdaConfiguration", skip_serializing_if = "Option::is_none")]
41    pub lambda_configuration: Option<Box<models::ProviderLambdaConfiguration>>,
42    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
43    #[serde(rename = "lastUpdateInstant", skip_serializing_if = "Option::is_none")]
44    pub last_update_instant: Option<i64>,
45    #[serde(rename = "linkingStrategy", skip_serializing_if = "Option::is_none")]
46    pub linking_strategy: Option<models::IdentityProviderLinkingStrategy>,
47    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
48    pub name: Option<String>,
49    #[serde(rename = "tenantConfiguration", skip_serializing_if = "Option::is_none")]
50    pub tenant_configuration: Option<std::collections::HashMap<String, models::IdentityProviderTenantConfiguration>>,
51    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
52    pub r#type: Option<models::IdentityProviderType>,
53}
54
55impl FacebookIdentityProvider {
56    /// Facebook social login provider.
57    pub fn new() -> FacebookIdentityProvider {
58        FacebookIdentityProvider {
59            app_id: None,
60            button_text: None,
61            client_secret: None,
62            fields: None,
63            login_method: None,
64            permissions: None,
65            data: None,
66            application_configuration: None,
67            debug: None,
68            id: None,
69            insert_instant: None,
70            lambda_configuration: None,
71            last_update_instant: None,
72            linking_strategy: None,
73            name: None,
74            tenant_configuration: None,
75            r#type: None,
76        }
77    }
78}
79