fusionauth_rust_client/models/
twilio_messenger_configuration.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[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 #[serde(rename = "insertInstant", skip_serializing_if = "Option::is_none")]
35 pub insert_instant: Option<i64>,
36 #[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 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