openai_struct/models/
comparison_filter.rs

1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
9 */
10
11/// pub ComparisonFilter : A filter used to compare a specified attribute key to a given value using a defined comparison operation.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct ComparisonFilter {
18    /// The key to compare against the value.
19    #[serde(rename = "key")]
20    pub key: String,
21    /// Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`. - `eq`: equals - `ne`: not equal - `gt`: greater than - `gte`: greater than or equal - `lt`: less than - `lte`: less than or equal
22    #[serde(rename = "type")]
23    pub _type: String,
24    /// The value to compare against the attribute key; supports string, number, or boolean types.
25    #[serde(rename = "value")]
26    pub value: Value,
27}