Skip to main content

clerk_sdk_rust_community/models/
create_sms_message_request.rs

1/*
2 * Clerk Backend API
3 *
4 * The Clerk REST Backend API, meant to be accessed by backend servers. Please see https://clerk.com/docs for more information.
5 *
6 * The version of the OpenAPI document: v1
7 * Contact: support@clerk.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct CreateSmsMessageRequest {
16    /// The message you would like to send
17    #[serde(rename = "message", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
18    pub message: Option<Option<String>>,
19    /// The ID of a verified phone number the SMS message should be sent to
20    #[serde(rename = "phone_number_id", skip_serializing_if = "Option::is_none")]
21    pub phone_number_id: Option<String>,
22}
23
24impl CreateSmsMessageRequest {
25    pub fn new() -> CreateSmsMessageRequest {
26        CreateSmsMessageRequest {
27            message: None,
28            phone_number_id: None,
29        }
30    }
31}
32
33