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.896.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    /// Tables a fork's copy with data copies without their rows, as `[schema.]name` patterns where `*` matches any characters and an unqualified name matches in every schema.
26    #[serde(rename = "schema_only_tables", skip_serializing_if = "Option::is_none")]
27    pub schema_only_tables: Option<Vec<String>>,
28    #[serde(rename = "forked_from", skip_serializing_if = "Option::is_none")]
29    pub forked_from: Option<Box<models::DataTableSettingsDatatablesValueForkedFrom>>,
30}
31
32impl DataTableSettingsDatatablesValue {
33    pub fn new() -> DataTableSettingsDatatablesValue {
34        DataTableSettingsDatatablesValue {
35            database: None,
36            reference: None,
37            governed_by: None,
38            migrations_enabled: None,
39            schema_only_tables: None,
40            forked_from: None,
41        }
42    }
43}
44