/*
* 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 UpdateAllOrgDatasetConfigsReqPayload {
/// The new configuration for all datasets in the organization. Only the specified keys in the configuration object will be changed per dataset such that you can preserve dataset unique values.
#[serde(rename = "dataset_config", deserialize_with = "Option::deserialize")]
pub dataset_config: Option<serde_json::Value>,
/// The id of the organization to update the dataset configurations for.
#[serde(rename = "organization_id")]
pub organization_id: uuid::Uuid,
}
impl UpdateAllOrgDatasetConfigsReqPayload {
pub fn new(dataset_config: Option<serde_json::Value>, organization_id: uuid::Uuid) -> UpdateAllOrgDatasetConfigsReqPayload {
UpdateAllOrgDatasetConfigsReqPayload {
dataset_config,
organization_id,
}
}
}