fusionauth_rust_client/models/
twitter_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/// TwitterIdentityProvider : Twitter social login provider.
15#[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    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
32    #[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    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
37    #[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    /// Twitter social login provider.
51    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