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
/*
* LangSmith Deployment
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.1.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// StorePutRequest : Request to store or update an item.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct StorePutRequest {
/// A list of strings representing the namespace path.
#[serde(rename = "namespace")]
pub namespace: Vec<String>,
/// The unique identifier for the item within the namespace.
#[serde(rename = "key")]
pub key: String,
/// A dictionary containing the item's data.
#[serde(rename = "value")]
pub value: serde_json::Value,
}
impl StorePutRequest {
/// Request to store or update an item.
pub fn new(namespace: Vec<String>, key: String, value: serde_json::Value) -> StorePutRequest {
StorePutRequest {
namespace,
key,
value,
}
}
}