/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.2
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetDatatableFullSchema200ResponseValueValueColumnsInner {
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "datatype")]
    pub datatype: String,
    #[serde(rename = "primary_key", skip_serializing_if = "Option::is_none")]
    pub primary_key: Option<bool>,
    #[serde(rename = "default_value", skip_serializing_if = "Option::is_none")]
    pub default_value: Option<String>,
    #[serde(rename = "nullable", skip_serializing_if = "Option::is_none")]
    pub nullable: Option<bool>,
}

impl GetDatatableFullSchema200ResponseValueValueColumnsInner {
    pub fn new(name: String, datatype: String) -> GetDatatableFullSchema200ResponseValueValueColumnsInner {
        GetDatatableFullSchema200ResponseValueValueColumnsInner {
            name,
            datatype,
            primary_key: None,
            default_value: None,
            nullable: None,
        }
    }
}

