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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* 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};
/// StoreSearchRequest : Request to search for items within a namespace prefix.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct StoreSearchRequest {
/// List of strings representing the namespace prefix.
#[serde(
rename = "namespace_prefix",
default,
with = "::serde_with::rust::double_option",
skip_serializing_if = "Option::is_none"
)]
pub namespace_prefix: Option<Option<Vec<String>>>,
/// Optional dictionary of key-value pairs to filter results.
#[serde(rename = "filter", skip_serializing_if = "Option::is_none")]
pub filter: Option<std::collections::HashMap<String, serde_json::Value>>,
/// Maximum number of items to return (default is 10).
#[serde(rename = "limit", skip_serializing_if = "Option::is_none")]
pub limit: Option<i32>,
/// Number of items to skip before returning results (default is 0).
#[serde(rename = "offset", skip_serializing_if = "Option::is_none")]
pub offset: Option<i32>,
/// Query string for semantic/vector search.
#[serde(
rename = "query",
default,
with = "::serde_with::rust::double_option",
skip_serializing_if = "Option::is_none"
)]
pub query: Option<Option<String>>,
}
impl StoreSearchRequest {
/// Request to search for items within a namespace prefix.
pub fn new() -> StoreSearchRequest {
StoreSearchRequest {
namespace_prefix: None,
filter: None,
limit: None,
offset: None,
query: None,
}
}
}