trieve_client/models/
create_chunk_req_payload_enum.rs

1/*
2 * Trieve API
3 *
4 * Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5 *
6 * The version of the OpenAPI document: 0.11.7
7 * Contact: developers@trieve.ai
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
14#[serde(untagged)]
15pub enum CreateChunkReqPayloadEnum {
16    CreateSingleChunkReqPayload(Box<models::ChunkReqPayload>),
17    CreateBatchChunkReqPayload(Vec<models::ChunkReqPayload>),
18}
19
20impl Default for CreateChunkReqPayloadEnum {
21    fn default() -> Self {
22        Self::CreateSingleChunkReqPayload(Default::default())
23    }
24}
25