windmill_api/models/
dynamic_input_data.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.548.3
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct DynamicInputData {
16    /// Name of the function to execute for dynamic select
17    #[serde(rename = "entrypoint_function")]
18    pub entrypoint_function: String,
19    /// Arguments to pass to the function
20    #[serde(rename = "args", skip_serializing_if = "Option::is_none")]
21    pub args: Option<serde_json::Value>,
22    #[serde(rename = "runnable_ref")]
23    pub runnable_ref: Box<models::DynamicInputDataRunnableRef>,
24}
25
26impl DynamicInputData {
27    pub fn new(entrypoint_function: String, runnable_ref: models::DynamicInputDataRunnableRef) -> DynamicInputData {
28        DynamicInputData {
29            entrypoint_function,
30            args: None,
31            runnable_ref: Box::new(runnable_ref),
32        }
33    }
34}
35