fusionauth_rust_client/models/
twitter_identity_provider.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TwitterIdentityProvider {
17 #[serde(rename = "buttonText", skip_serializing_if = "Option::is_none")]
18 pub button_text: Option<String>,
19 #[serde(rename = "consumerKey", skip_serializing_if = "Option::is_none")]
20 pub consumer_key: Option<String>,
21 #[serde(rename = "consumerSecret", skip_serializing_if = "Option::is_none")]
22 pub consumer_secret: Option<String>,
23 #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
24 pub data: Option<std::collections::HashMap<String, serde_json::Value>>,
25 #[serde(rename = "applicationConfiguration", skip_serializing_if = "Option::is_none")]
26 pub application_configuration: Option<std::collections::HashMap<String, models::TwitterApplicationConfiguration>>,
27 #[serde(rename = "debug", skip_serializing_if = "Option::is_none")]
28 pub debug: Option<bool>,
29 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
30 pub id: Option<uuid::Uuid>,
31 #[serde(rename = "insertInstant", skip_serializing_if = "Option::is_none")]
33 pub insert_instant: Option<i64>,
34 #[serde(rename = "lambdaConfiguration", skip_serializing_if = "Option::is_none")]
35 pub lambda_configuration: Option<Box<models::ProviderLambdaConfiguration>>,
36 #[serde(rename = "lastUpdateInstant", skip_serializing_if = "Option::is_none")]
38 pub last_update_instant: Option<i64>,
39 #[serde(rename = "linkingStrategy", skip_serializing_if = "Option::is_none")]
40 pub linking_strategy: Option<models::IdentityProviderLinkingStrategy>,
41 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
42 pub name: Option<String>,
43 #[serde(rename = "tenantConfiguration", skip_serializing_if = "Option::is_none")]
44 pub tenant_configuration: Option<std::collections::HashMap<String, models::IdentityProviderTenantConfiguration>>,
45 #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
46 pub r#type: Option<models::IdentityProviderType>,
47}
48
49impl TwitterIdentityProvider {
50 pub fn new() -> TwitterIdentityProvider {
52 TwitterIdentityProvider {
53 button_text: None,
54 consumer_key: None,
55 consumer_secret: None,
56 data: None,
57 application_configuration: None,
58 debug: None,
59 id: None,
60 insert_instant: None,
61 lambda_configuration: None,
62 last_update_instant: None,
63 linking_strategy: None,
64 name: None,
65 tenant_configuration: None,
66 r#type: None,
67 }
68 }
69}
70