Skip to main content

windmill_api/models/
data_table_settings_datatables_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.816.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 DataTableSettingsDatatablesValue {
16    #[serde(rename = "database", skip_serializing_if = "Option::is_none")]
17    pub database: Option<Box<models::DataTableSettingsDatatablesValueDatabase>>,
18    #[serde(rename = "reference", skip_serializing_if = "Option::is_none")]
19    pub reference: Option<Box<models::DataTableSettingsDatatablesValueReference>>,
20    #[serde(rename = "governed_by", skip_serializing_if = "Option::is_none")]
21    pub governed_by: Option<Box<models::DataTableSettingsDatatablesValueGovernedBy>>,
22    /// Whether the SQL migrations feature is opted in for this data table
23    #[serde(rename = "migrations_enabled", skip_serializing_if = "Option::is_none")]
24    pub migrations_enabled: Option<bool>,
25    #[serde(rename = "forked_from", skip_serializing_if = "Option::is_none")]
26    pub forked_from: Option<Box<models::DataTableSettingsDatatablesValueForkedFrom>>,
27}
28
29impl DataTableSettingsDatatablesValue {
30    pub fn new() -> DataTableSettingsDatatablesValue {
31        DataTableSettingsDatatablesValue {
32            database: None,
33            reference: None,
34            governed_by: None,
35            migrations_enabled: None,
36            forked_from: None,
37        }
38    }
39}
40