/*
* 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};
/// TableConstraints : A description of the table constraints. Unique constraint is the only current constraint.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TableConstraints {
/// Object of constraint_name as key and list of columns to keep unique as value.
#[serde(rename = "unique", skip_serializing_if = "Option::is_none")]
pub unique: Option<serde_json::Value>,
}
impl TableConstraints {
/// A description of the table constraints. Unique constraint is the only current constraint.
pub fn new() -> TableConstraints {
TableConstraints { unique: None }
}
}