fusionauth_rust_client/models/
facebook_identity_provider.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[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 #[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 #[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 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