mistral-openapi-client 0.1.0

Our Chat Completion and Embeddings APIs specification. Create your account on [La Plateforme](https://console.mistral.ai) to get access and read the [docs](https://docs.mistral.ai) to learn how to use it.
Documentation
/*
 * Mistral AI API
 *
 * Our Chat Completion and Embeddings APIs specification. Create your account on [La Plateforme](https://console.mistral.ai) to get access and read the [docs](https://docs.mistral.ai) to learn how to use it.
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ConnectorMcpCreate {
    /// The name of the connector. Should be 64 char length maximum, alphanumeric, only underscores/dashes.
    #[serde(rename = "name")]
    pub name: String,
    /// The description of the connector.
    #[serde(rename = "description")]
    pub description: String,
    #[serde(rename = "icon_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub icon_url: Option<Option<String>>,
    /// Visibility of the connector. Use 'shared_workspace' for workspace scoped connectors, or 'private' for private connectors.
    #[serde(rename = "visibility", skip_serializing_if = "Option::is_none")]
    pub visibility: Option<models::ResourceVisibility>,
    /// The url of the MCP server.
    #[serde(rename = "server")]
    pub server: String,
    #[serde(rename = "headers", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub headers: Option<Option<std::collections::HashMap<String, serde_json::Value>>>,
    #[serde(rename = "auth_data", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub auth_data: Option<Option<Box<models::AuthData>>>,
    #[serde(rename = "system_prompt", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub system_prompt: Option<Option<String>>,
}

impl ConnectorMcpCreate {
    pub fn new(name: String, description: String, server: String) -> ConnectorMcpCreate {
        ConnectorMcpCreate {
            name,
            description,
            icon_url: None,
            visibility: None,
            server,
            headers: None,
            auth_data: None,
            system_prompt: None,
        }
    }
}