/*
* 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};
/// WorkflowStatus : Toggle a workflow on or off.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct WorkflowStatus {
/// New active status.
#[serde(rename = "active")]
pub active: bool,
}
impl WorkflowStatus {
/// Toggle a workflow on or off.
pub fn new(active: bool) -> WorkflowStatus {
WorkflowStatus {
active,
}
}
}