trieve_client/models/
update_dataset_request.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 UpdateDatasetRequest {
15    /// The id of the dataset you want to update.
16    #[serde(rename = "dataset_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
17    pub dataset_id: Option<Option<uuid::Uuid>>,
18    /// The new name of the dataset. Must be unique within the organization. If not provided, the name will not be updated.
19    #[serde(rename = "dataset_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
20    pub dataset_name: Option<Option<String>>,
21    /// Optional new tracking ID for the dataset. Can be used to track the dataset in external systems. Must be unique within the organization. If not provided, the tracking ID will not be updated. Strongly recommended to not use a valid uuid value as that will not work with the TR-Dataset header.
22    #[serde(rename = "new_tracking_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23    pub new_tracking_id: Option<Option<String>>,
24    #[serde(rename = "server_configuration", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
25    pub server_configuration: Option<Option<Box<models::DatasetConfigurationDto>>>,
26    /// The tracking ID of the dataset you want to update.
27    #[serde(rename = "tracking_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
28    pub tracking_id: Option<Option<String>>,
29}
30
31impl UpdateDatasetRequest {
32    pub fn new() -> UpdateDatasetRequest {
33        UpdateDatasetRequest {
34            dataset_id: None,
35            dataset_name: None,
36            new_tracking_id: None,
37            server_configuration: None,
38            tracking_id: None,
39        }
40    }
41}
42