enbbox 1.0.1

Notification infrastructure API — open-source alternative to Novu/Courier
Documentation
/*
 * 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};

/// StepPreview : Request body for previewing a rendered step template.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct StepPreview {
    #[serde(rename = "payload", deserialize_with = "Option::deserialize")]
    pub payload: Option<serde_json::Value>,
}

impl StepPreview {
    /// Request body for previewing a rendered step template.
    pub fn new(payload: Option<serde_json::Value>) -> StepPreview {
        StepPreview {
            payload,
        }
    }
}