/*
* enbbox API
*
* Notification infrastructure API — open-source alternative to Novu/Courier
*
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// InviteMember : Invite a user to join the project by email.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct InviteMember {
/// Email address of the user to invite.
#[serde(rename = "email")]
pub email: String,
/// Role to assign: `admin` or `member`.
#[serde(rename = "role", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub role: Option<Option<String>>,
}
impl InviteMember {
/// Invite a user to join the project by email.
pub fn new(email: String) -> InviteMember {
InviteMember {
email,
role: None,
}
}
}