Skip to main content

windmill_api/models/
get_datatable_full_schema_200_response_value_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.679.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 GetDatatableFullSchema200ResponseValueValue {
16    #[serde(rename = "name")]
17    pub name: String,
18    #[serde(rename = "columns")]
19    pub columns: Vec<models::GetDatatableFullSchema200ResponseValueValueColumnsInner>,
20    #[serde(rename = "foreign_keys")]
21    pub foreign_keys: Vec<models::GetDatatableFullSchema200ResponseValueValueForeignKeysInner>,
22    #[serde(rename = "pk_constraint_name", skip_serializing_if = "Option::is_none")]
23    pub pk_constraint_name: Option<String>,
24}
25
26impl GetDatatableFullSchema200ResponseValueValue {
27    pub fn new(name: String, columns: Vec<models::GetDatatableFullSchema200ResponseValueValueColumnsInner>, foreign_keys: Vec<models::GetDatatableFullSchema200ResponseValueValueForeignKeysInner>) -> GetDatatableFullSchema200ResponseValueValue {
28        GetDatatableFullSchema200ResponseValueValue {
29            name,
30            columns,
31            foreign_keys,
32            pk_constraint_name: None,
33        }
34    }
35}
36