use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct IntegrationsSchemasApiToolTool {
#[serde(rename = "id")]
pub id: String,
#[serde(rename = "name")]
pub name: String,
#[serde(rename = "description")]
pub description: String,
#[serde(rename = "system_prompt", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub system_prompt: Option<Option<String>>,
#[serde(rename = "locale", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub locale: Option<Option<Box<models::IntegrationsSchemasTurbineToolLocale>>>,
#[serde(rename = "jsonschema", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub jsonschema: Option<Option<std::collections::HashMap<String, serde_json::Value>>>,
#[serde(rename = "execution_config", deserialize_with = "Option::deserialize")]
pub execution_config: Option<models::ExecutionConfig>,
#[serde(rename = "visibility")]
pub visibility: models::ResourceVisibility,
#[serde(rename = "created_at")]
pub created_at: String,
#[serde(rename = "modified_at")]
pub modified_at: String,
#[serde(rename = "active", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub active: Option<Option<bool>>,
}
impl IntegrationsSchemasApiToolTool {
pub fn new(id: String, name: String, description: String, execution_config: Option<models::ExecutionConfig>, visibility: models::ResourceVisibility, created_at: String, modified_at: String) -> IntegrationsSchemasApiToolTool {
IntegrationsSchemasApiToolTool {
id,
name,
description,
system_prompt: None,
locale: None,
jsonschema: None,
execution_config,
visibility,
created_at,
modified_at,
active: None,
}
}
}