/*
* Clerk Backend API
*
* The Clerk REST Backend API, meant to be accessed by backend servers. Please see https://clerk.com/docs for more information.
*
* The version of the OpenAPI document: v1
* Contact: support@clerk.com
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateAllowlistIdentifierRequest {
/// The identifier to be added in the allow-list. This can be an email address, a phone number or a web3 wallet.
#[serde(rename = "identifier")]
pub identifier: String,
/// 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.
#[serde(rename = "notify", skip_serializing_if = "Option::is_none")]
pub notify: Option<bool>,
}
impl CreateAllowlistIdentifierRequest {
pub fn new(identifier: String) -> CreateAllowlistIdentifierRequest {
CreateAllowlistIdentifierRequest { identifier, notify: None }
}
}