fusionauth_rust_client/models/
twilio_messenger_configuration.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/// TwilioMessengerConfiguration : 
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TwilioMessengerConfiguration {
17    #[serde(rename = "accountSID", skip_serializing_if = "Option::is_none")]
18    pub account_sid: Option<String>,
19    #[serde(rename = "authToken", skip_serializing_if = "Option::is_none")]
20    pub auth_token: Option<String>,
21    #[serde(rename = "fromPhoneNumber", skip_serializing_if = "Option::is_none")]
22    pub from_phone_number: Option<String>,
23    #[serde(rename = "messagingServiceSid", skip_serializing_if = "Option::is_none")]
24    pub messaging_service_sid: Option<String>,
25    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
26    pub url: Option<String>,
27    #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
28    pub data: Option<std::collections::HashMap<String, serde_json::Value>>,
29    #[serde(rename = "debug", skip_serializing_if = "Option::is_none")]
30    pub debug: Option<bool>,
31    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
32    pub id: Option<uuid::Uuid>,
33    /// The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
34    #[serde(rename = "insertInstant", skip_serializing_if = "Option::is_none")]
35    pub insert_instant: Option<i64>,
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 = "name", skip_serializing_if = "Option::is_none")]
40    pub name: Option<String>,
41    #[serde(rename = "transport", skip_serializing_if = "Option::is_none")]
42    pub transport: Option<String>,
43    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
44    pub r#type: Option<models::MessengerType>,
45}
46
47impl TwilioMessengerConfiguration {
48    /// 
49    pub fn new() -> TwilioMessengerConfiguration {
50        TwilioMessengerConfiguration {
51            account_sid: None,
52            auth_token: None,
53            from_phone_number: None,
54            messaging_service_sid: None,
55            url: None,
56            data: None,
57            debug: None,
58            id: None,
59            insert_instant: None,
60            last_update_instant: None,
61            name: None,
62            transport: None,
63            r#type: None,
64        }
65    }
66}
67