Skip to main content

windmill_api/models/
list_data_tables_200_response_inner.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.683.1
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 ListDataTables200ResponseInner {
16    #[serde(rename = "name")]
17    pub name: String,
18    #[serde(rename = "resource_type")]
19    pub resource_type: ResourceType,
20    #[serde(rename = "resource_path")]
21    pub resource_path: String,
22}
23
24impl ListDataTables200ResponseInner {
25    pub fn new(name: String, resource_type: ResourceType, resource_path: String) -> ListDataTables200ResponseInner {
26        ListDataTables200ResponseInner {
27            name,
28            resource_type,
29            resource_path,
30        }
31    }
32}
33/// 
34#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
35pub enum ResourceType {
36    #[serde(rename = "postgres")]
37    Postgres,
38    #[serde(rename = "instance")]
39    Instance,
40}
41
42impl Default for ResourceType {
43    fn default() -> ResourceType {
44        Self::Postgres
45    }
46}
47