/*
* 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};
/// NotificationGroupRecord : A notification group used to categorize and organize workflows.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct NotificationGroupRecord {
/// Unique identifier.
#[serde(rename = "id")]
pub id: uuid::Uuid,
/// Display name.
#[serde(rename = "name")]
pub name: String,
}
impl NotificationGroupRecord {
/// A notification group used to categorize and organize workflows.
pub fn new(id: uuid::Uuid, name: String) -> NotificationGroupRecord {
NotificationGroupRecord {
id,
name,
}
}
}