babelforce-manager-sdk 0.44.0

Rust SDK for the babelforce manager APIs — auth, user & agent management, call reporting, metrics, and task automations.
Documentation
/*
 * 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};

/// JavaScriptReferenceProperties : A reference to a stored java script. Either the identifier or the name need to be specified.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct JavaScriptReferenceProperties {
    #[serde(rename = "ref")]
    pub r#ref: Box<models::ReferenceProperties>,
}

impl JavaScriptReferenceProperties {
    /// A reference to a stored java script. Either the identifier or the name need to be specified.
    pub fn new(r#ref: models::ReferenceProperties) -> JavaScriptReferenceProperties {
        JavaScriptReferenceProperties {
            r#ref: Box::new(r#ref),
        }
    }
}