use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct NotificationSchemeEventDetails {
#[serde(rename = "event")]
pub event: models::NotificationSchemeEventTypeId,
#[serde(rename = "notifications")]
pub notifications: Vec<models::NotificationSchemeNotificationDetails>,
}
impl NotificationSchemeEventDetails {
pub fn new(event: models::NotificationSchemeEventTypeId, notifications: Vec<models::NotificationSchemeNotificationDetails>) -> NotificationSchemeEventDetails {
NotificationSchemeEventDetails {
event,
notifications,
}
}
}