/*
* 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};
/// ActionRecord : An action (CTA button) attached to an inbox notification.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ActionRecord {
#[serde(rename = "action_type")]
pub action_type: String,
#[serde(rename = "message_id")]
pub message_id: String,
/// Current status.
#[serde(rename = "status")]
pub status: String,
}
impl ActionRecord {
/// An action (CTA button) attached to an inbox notification.
pub fn new(action_type: String, message_id: String, status: String) -> ActionRecord {
ActionRecord {
action_type,
message_id,
status,
}
}
}