Skip to main content

windmill_api/models/
static_provider_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.628.3
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// StaticProviderTransform : Static provider configuration passed directly to the AI agent
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct StaticProviderTransform {
17    #[serde(rename = "value")]
18    pub value: Box<models::ProviderConfig>,
19    #[serde(rename = "type")]
20    pub r#type: Type,
21}
22
23impl StaticProviderTransform {
24    /// Static provider configuration passed directly to the AI agent
25    pub fn new(value: models::ProviderConfig, r#type: Type) -> StaticProviderTransform {
26        StaticProviderTransform {
27            value: Box::new(value),
28            r#type,
29        }
30    }
31}
32/// 
33#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
34pub enum Type {
35    #[serde(rename = "static")]
36    Static,
37}
38
39impl Default for Type {
40    fn default() -> Type {
41        Self::Static
42    }
43}
44