1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* Trieve API
*
* Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
*
* The version of the OpenAPI document: 0.11.7
* Contact: developers@trieve.ai
* Generated by: https://openapi-generator.tech
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateSingleChunkGroupReqPayload {
/// Description to assign to the chunk_group. Convenience field for you to avoid having to remember what the group is for.
#[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub description: Option<Option<String>>,
/// Optional metadata to assign to the chunk_group. This is a JSON object that can store any additional information you want to associate with the chunks inside of the chunk_group.
#[serde(rename = "metadata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub metadata: Option<Option<serde_json::Value>>,
/// Name to assign to the chunk_group. Does not need to be unique.
#[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub name: Option<Option<String>>,
/// Optional tags to assign to the chunk_group. This is a list of strings that can be used to categorize the chunks inside the chunk_group.
#[serde(rename = "tag_set", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub tag_set: Option<Option<Vec<String>>>,
/// Optional tracking id to assign to the chunk_group. This is a unique identifier for the chunk_group.
#[serde(rename = "tracking_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub tracking_id: Option<Option<String>>,
/// Upsert when a chunk_group with the same tracking_id exists. By default this is false, and the request will fail if a chunk_group with the same tracking_id exists. If this is true, the chunk_group will be updated if a chunk_group with the same tracking_id exists.
#[serde(rename = "upsert_by_tracking_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub upsert_by_tracking_id: Option<Option<bool>>,
}
impl CreateSingleChunkGroupReqPayload {
pub fn new() -> CreateSingleChunkGroupReqPayload {
CreateSingleChunkGroupReqPayload {
description: None,
metadata: None,
name: None,
tag_set: None,
tracking_id: None,
upsert_by_tracking_id: None,
}
}
}