windmill-api 1.684.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.684.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DynamicInputData {
    /// Name of the function to execute for dynamic select
    #[serde(rename = "entrypoint_function")]
    pub entrypoint_function: String,
    /// Arguments to pass to the function
    #[serde(rename = "args", skip_serializing_if = "Option::is_none")]
    pub args: Option<serde_json::Value>,
    #[serde(rename = "runnable_ref")]
    pub runnable_ref: Box<models::DynamicInputDataRunnableRef>,
}

impl DynamicInputData {
    pub fn new(entrypoint_function: String, runnable_ref: models::DynamicInputDataRunnableRef) -> DynamicInputData {
        DynamicInputData {
            entrypoint_function,
            args: None,
            runnable_ref: Box::new(runnable_ref),
        }
    }
}