Skip to main content

windmill_api/models/
ai_transform.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.624.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// AiTransform : Value resolved by the AI runtime for this input. The AI engine decides how to satisfy the parameter.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AiTransform {
17    #[serde(rename = "type")]
18    pub r#type: Type,
19}
20
21impl AiTransform {
22    /// Value resolved by the AI runtime for this input. The AI engine decides how to satisfy the parameter.
23    pub fn new(r#type: Type) -> AiTransform {
24        AiTransform {
25            r#type,
26        }
27    }
28}
29/// 
30#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
31pub enum Type {
32    #[serde(rename = "ai")]
33    Ai,
34}
35
36impl Default for Type {
37    fn default() -> Type {
38        Self::Ai
39    }
40}
41