Skip to main content

windmill_api/models/
data_table_settings_datatables_value_governed_by.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/// DataTableSettingsDatatablesValueGovernedBy : On a clone, the data table it was copied from, whose roles it takes. Server-owned like `reference`.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DataTableSettingsDatatablesValueGovernedBy {
17    #[serde(rename = "workspace_id")]
18    pub workspace_id: String,
19    #[serde(rename = "datatable")]
20    pub datatable: String,
21}
22
23impl DataTableSettingsDatatablesValueGovernedBy {
24    /// On a clone, the data table it was copied from, whose roles it takes. Server-owned like `reference`.
25    pub fn new(workspace_id: String, datatable: String) -> DataTableSettingsDatatablesValueGovernedBy {
26        DataTableSettingsDatatablesValueGovernedBy {
27            workspace_id,
28            datatable,
29        }
30    }
31}
32