windmill_api/models/
mcp_tool_value.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.565.0
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 McpToolValue {
16    #[serde(rename = "tool_type")]
17    pub tool_type: ToolType,
18    #[serde(rename = "resource_path")]
19    pub resource_path: String,
20    #[serde(rename = "include_tools", skip_serializing_if = "Option::is_none")]
21    pub include_tools: Option<Vec<String>>,
22    #[serde(rename = "exclude_tools", skip_serializing_if = "Option::is_none")]
23    pub exclude_tools: Option<Vec<String>>,
24}
25
26impl McpToolValue {
27    pub fn new(tool_type: ToolType, resource_path: String) -> McpToolValue {
28        McpToolValue {
29            tool_type,
30            resource_path,
31            include_tools: None,
32            exclude_tools: None,
33        }
34    }
35}
36/// 
37#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
38pub enum ToolType {
39    #[serde(rename = "mcp")]
40    Mcp,
41}
42
43impl Default for ToolType {
44    fn default() -> ToolType {
45        Self::Mcp
46    }
47}
48