clerk_rs/models/
toggle_template_delivery_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.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
12pub struct ToggleTemplateDeliveryRequest {
13	/// Whether Clerk should deliver emails or SMS messages based on the current template
14	#[serde(
15		rename = "delivered_by_clerk",
16		default,
17		with = "::serde_with::rust::double_option",
18		skip_serializing_if = "Option::is_none"
19	)]
20	pub delivered_by_clerk: Option<Option<bool>>,
21}
22
23impl ToggleTemplateDeliveryRequest {
24	pub fn new() -> ToggleTemplateDeliveryRequest {
25		ToggleTemplateDeliveryRequest { delivered_by_clerk: None }
26	}
27}