amazon_spapi/models/app_integrations_2024_04_01/
delete_notifications_request.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DeleteNotificationsRequest {
17 #[serde(rename = "templateId")]
19 pub template_id: String,
20 #[serde(rename = "deletionReason")]
22 pub deletion_reason: DeletionReason,
23}
24
25impl DeleteNotificationsRequest {
26 pub fn new(template_id: String, deletion_reason: DeletionReason) -> DeleteNotificationsRequest {
28 DeleteNotificationsRequest {
29 template_id,
30 deletion_reason,
31 }
32 }
33}
34#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
36pub enum DeletionReason {
37 #[serde(rename = "INCORRECT_CONTENT")]
38 IncorrectContent,
39 #[serde(rename = "INCORRECT_RECIPIENT")]
40 IncorrectRecipient,
41}
42
43impl Default for DeletionReason {
44 fn default() -> DeletionReason {
45 Self::IncorrectContent
46 }
47}
48