/*
 * 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 MainArgSignatureArgsInner {
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "typ")]
    pub typ: Box<models::MainArgSignatureArgsInnerTyp>,
    #[serde(rename = "has_default", skip_serializing_if = "Option::is_none")]
    pub has_default: Option<bool>,
    #[serde(rename = "default", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub default: Option<Option<serde_json::Value>>,
}

impl MainArgSignatureArgsInner {
    pub fn new(name: String, typ: models::MainArgSignatureArgsInnerTyp) -> MainArgSignatureArgsInner {
        MainArgSignatureArgsInner {
            name,
            typ: Box::new(typ),
            has_default: None,
            default: None,
        }
    }
}

