use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DeleteNotificationsRequest {
#[serde(rename = "templateId")]
pub template_id: String,
#[serde(rename = "deletionReason")]
pub deletion_reason: DeletionReason,
}
impl DeleteNotificationsRequest {
pub fn new(template_id: String, deletion_reason: DeletionReason) -> DeleteNotificationsRequest {
DeleteNotificationsRequest {
template_id,
deletion_reason,
}
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum DeletionReason {
#[serde(rename = "INCORRECT_CONTENT")]
IncorrectContent,
#[serde(rename = "INCORRECT_RECIPIENT")]
IncorrectRecipient,
}
impl Default for DeletionReason {
fn default() -> DeletionReason {
Self::IncorrectContent
}
}