langgraph_api/generated/models/
store_delete_request.rs

1/*
2 * LangSmith Deployment
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 0.1.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// StoreDeleteRequest : Request to delete an item.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct StoreDeleteRequest {
17    /// A list of strings representing the namespace path.
18    #[serde(rename = "namespace", skip_serializing_if = "Option::is_none")]
19    pub namespace: Option<Vec<String>>,
20    /// The unique identifier for the item.
21    #[serde(rename = "key")]
22    pub key: String,
23}
24
25impl StoreDeleteRequest {
26    /// Request to delete an item.
27    pub fn new(key: String) -> StoreDeleteRequest {
28        StoreDeleteRequest {
29            namespace: None,
30            key,
31        }
32    }
33}