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 View {
    /// The name of the view.
    #[serde(rename = "view_name", skip_serializing_if = "Option::is_none")]
    pub view_name: Option<String>,
    /// The url path used for the root root_url associated with the view.
    #[serde(rename = "root_url", skip_serializing_if = "Option::is_none")]
    pub root_url: Option<String>,
    /// Which endpoints are available for the view. (This doesn't work/doesn't mean anything)
    #[serde(rename = "endpoints", skip_serializing_if = "Option::is_none")]
    pub endpoints: Option<String>,
    /// View ID to manage the view with. Serial IDs allocated per tenant.
    #[serde(rename = "manage_view_id", skip_serializing_if = "Option::is_none")]
    pub manage_view_id: Option<String>,
    /// The name of the tenant this view is created in.
    #[serde(rename = "tenant_id", skip_serializing_if = "Option::is_none")]
    pub tenant_id: Option<String>,
    /// Text area to describe view. Returned when calling manage endpoints.
    #[serde(rename = "comments", skip_serializing_if = "Option::is_none")]
    pub comments: Option<String>,
}

impl View {
    pub fn new() -> View {
        View {
            view_name: None,
            root_url: None,
            endpoints: None,
            manage_view_id: None,
            tenant_id: None,
            comments: None,
        }
    }
}