/*
* task-automation task schedule API
*
* execution of recurring time based tasks
*
* The version of the OpenAPI document: 3.63.10
* Contact: support@babelforce.com
* Generated by: https://openapi-generator.tech
*/
use crate::gen::task_schedule::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct JavaScriptAction {
#[serde(rename = "action_type")]
pub action_type: String,
#[serde(rename = "js", skip_serializing_if = "Option::is_none")]
pub js: Option<Box<models::JavaScript>>,
}
impl JavaScriptAction {
pub fn new(action_type: String) -> JavaScriptAction {
JavaScriptAction {
action_type,
js: None,
}
}
}