openai-struct 0.0.4

利用openai的openapi生成的rust结构体
Documentation
/*
 * OpenAI API
 *
 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
 *
 * OpenAPI spec pub version: 2.3.0
 *
 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
 */

/// pub ChunkingStrategyRequestParam : The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy.

#[allow(unused_imports)]
use serde_json::Value;

use crate::{AutoChunkingStrategyRequestParam, StaticChunkingStrategyRequestParam};

/// # on openapi.yaml
///
/// ```yaml
/// ChunkingStrategyRequestParam:
///   type: object
///   description:
///     The chunking strategy used to chunk the file(s). If not set, will
///     use the `auto` strategy.
///   oneOf:
///     - $ref: "#/components/schemas/AutoChunkingStrategyRequestParam"
///     - $ref: "#/components/schemas/StaticChunkingStrategyRequestParam"
/// ```
#[derive(Debug, Serialize, Deserialize)]
pub enum ChunkingStrategyRequestParam {
    Auto(AutoChunkingStrategyRequestParam),
    Static(StaticChunkingStrategyRequestParam),
}