tapis-pgrest 0.3.1

The Tapis PgREST API provides a RESTful interface to a managed SQL-db-as-a-service.
Documentation
/*
 * Tapis PgREST API
 *
 * The Tapis PgREST API provides a RESTful interface to a managed SQL-db-as-a-service.
 *
 * The version of the OpenAPI document: 1.0.0
 * Contact: cicsupport@tacc.utexas.edu
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateTable {
    /// Operation to change the table_name currently associated with the table.
    #[serde(rename = "table_name", skip_serializing_if = "Option::is_none")]
    pub table_name: Option<String>,
    /// Operation to change the root_url currently associated with the table.
    #[serde(rename = "root_url", skip_serializing_if = "Option::is_none")]
    pub root_url: Option<String>,
    /// Operation to change the comments currently associated with the table (Overwrites existing).
    #[serde(rename = "comments", skip_serializing_if = "Option::is_none")]
    pub comments: Option<String>,
    /// Operation to change the endpoints a table currently has available.
    #[serde(rename = "endpoints", skip_serializing_if = "Option::is_none")]
    pub endpoints: Option<Vec<String>>,
    /// Operation to change the column_type of a particular column in table (\"col_name, new_type\" format).
    #[serde(rename = "column_type", skip_serializing_if = "Option::is_none")]
    pub column_type: Option<String>,
    #[serde(rename = "add_column", skip_serializing_if = "Option::is_none")]
    pub add_column: Option<models::TableColumns>,
    /// Operation to drop a column in a table (Not reversible).
    #[serde(rename = "drop_column", skip_serializing_if = "Option::is_none")]
    pub drop_column: Option<String>,
    /// Operation to set a new default on a column in a table (\"col_name, new_default\" format).
    #[serde(rename = "set_default", skip_serializing_if = "Option::is_none")]
    pub set_default: Option<String>,
    /// Operation to drop a default currently set on a column in a table.
    #[serde(rename = "drop_default", skip_serializing_if = "Option::is_none")]
    pub drop_default: Option<String>,
}

impl UpdateTable {
    pub fn new() -> UpdateTable {
        UpdateTable {
            table_name: None,
            root_url: None,
            comments: None,
            endpoints: None,
            column_type: None,
            add_column: None,
            drop_column: None,
            set_default: None,
            drop_default: None,
        }
    }
}