windmill-api 1.699.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.699.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DataTableTableSchema {
    #[serde(rename = "datatable_name")]
    pub datatable_name: String,
    #[serde(rename = "schema_name")]
    pub schema_name: String,
    #[serde(rename = "table_name")]
    pub table_name: String,
    /// Columns in this table: column_name -> compact_type
    #[serde(rename = "columns")]
    pub columns: std::collections::HashMap<String, String>,
}

impl DataTableTableSchema {
    pub fn new(datatable_name: String, schema_name: String, table_name: String, columns: std::collections::HashMap<String, String>) -> DataTableTableSchema {
        DataTableTableSchema {
            datatable_name,
            schema_name,
            table_name,
            columns,
        }
    }
}