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};

/// UpdateWorkflow : Partial update of an existing workflow. Only provided fields are changed.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateWorkflow {
    /// Updated active status.
    #[serde(rename = "active", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub active: Option<Option<bool>>,
    /// Updated description.
    #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub description: Option<Option<String>>,
    /// Updated workflow name.
    #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub name: Option<Option<String>>,
    /// Updated preference settings.
    #[serde(rename = "preference_settings", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub preference_settings: Option<Option<models::PreferenceChannels>>,
    /// Updated steps (replaces all existing steps).
    #[serde(rename = "steps", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub steps: Option<Option<Vec<models::WorkflowStepCreate>>>,
    /// Updated tags.
    #[serde(rename = "tags", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub tags: Option<Option<Vec<String>>>,
}

impl UpdateWorkflow {
    /// Partial update of an existing workflow. Only provided fields are changed.
    pub fn new() -> UpdateWorkflow {
        UpdateWorkflow {
            active: None,
            description: None,
            name: None,
            preference_settings: None,
            steps: None,
            tags: None,
        }
    }
}