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