trieve_client/models/
update_chunk_group_req_payload.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, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct UpdateChunkGroupReqPayload {
15    /// Description to assign to the chunk_group. Convenience field for you to avoid having to remember what the group is for. If not provided, the description will not be updated.
16    #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
17    pub description: Option<Option<String>>,
18    /// Id of the chunk_group to update.
19    #[serde(rename = "group_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
20    pub group_id: Option<Option<uuid::Uuid>>,
21    /// 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.
22    #[serde(rename = "metadata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23    pub metadata: Option<Option<serde_json::Value>>,
24    /// Name to assign to the chunk_group. Does not need to be unique. If not provided, the name will not be updated.
25    #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
26    pub name: Option<Option<String>>,
27    /// 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.
28    #[serde(rename = "tag_set", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
29    pub tag_set: Option<Option<Vec<String>>>,
30    /// Tracking Id of the chunk_group to update.
31    #[serde(rename = "tracking_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
32    pub tracking_id: Option<Option<String>>,
33    /// Flag to update the chunks in the group. If true, each chunk in the group will be updated by appending the group's tags to the chunk's tags. Default is false.
34    #[serde(rename = "update_chunks", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
35    pub update_chunks: Option<Option<bool>>,
36}
37
38impl UpdateChunkGroupReqPayload {
39    pub fn new() -> UpdateChunkGroupReqPayload {
40        UpdateChunkGroupReqPayload {
41            description: None,
42            group_id: None,
43            metadata: None,
44            name: None,
45            tag_set: None,
46            tracking_id: None,
47            update_chunks: None,
48        }
49    }
50}
51