openai-client-base 0.16.0

Auto-generated Rust client for the OpenAI API
/*
 * OpenAI API
 *
 * The OpenAI REST API. Please see https://platform.openai.com/docs/api-reference for more details.
 *
 * The version of the OpenAPI document: 2.3.0
 *
 * Generated by: https://openapi-generator.tech
 */

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

/// ApplyPatchOperation1 : One of the create_file, delete_file, or update_file operations applied via apply_patch.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ApplyPatchOperation1 {
    #[serde(rename = "BetaApplyPatchCreateFileOperation")]
    BetaApplyPatchCreateFileOperation(Box<models::BetaApplyPatchCreateFileOperation>),
    #[serde(rename = "BetaApplyPatchDeleteFileOperation")]
    BetaApplyPatchDeleteFileOperation(Box<models::BetaApplyPatchDeleteFileOperation>),
    #[serde(rename = "BetaApplyPatchUpdateFileOperation")]
    BetaApplyPatchUpdateFileOperation(Box<models::BetaApplyPatchUpdateFileOperation>),
}

impl Default for ApplyPatchOperation1 {
    fn default() -> Self {
        Self::BetaApplyPatchCreateFileOperation(Default::default())
    }
}