clerk_rs/models/create_allowlist_identifier_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 CreateAllowlistIdentifierRequest {
13 /// The identifier to be added in the allow-list. This can be an email address, a phone number or a web3 wallet.
14 #[serde(rename = "identifier")]
15 pub identifier: String,
16 /// This flag denotes whether the given identifier will receive an invitation to join the application. Note that this only works for email address and phone number identifiers.
17 #[serde(rename = "notify", skip_serializing_if = "Option::is_none")]
18 pub notify: Option<bool>,
19}
20
21impl CreateAllowlistIdentifierRequest {
22 pub fn new(identifier: String) -> CreateAllowlistIdentifierRequest {
23 CreateAllowlistIdentifierRequest { identifier, notify: None }
24 }
25}