Skip to main content

opensearch_client/ml/
key.rs

1/*
2 * opensearch-client
3 *
4 * Rust Client for OpenSearch
5 *
6 * The version of the OpenAPI document: 3.1.0
7 * Contact: alberto.paro@gmail.com
8 * Generated by Paro OpenAPI Generator
9 */
10
11use serde::{Deserialize, Serialize};
12
13/// Key
14/// The key.
15
16
17#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
18pub struct Key {  /// Greater than.
19    #[serde(rename = "gt", default, skip_serializing_if = "Option::is_none")]
20    pub gt: Option<f64>,  /// Greater than or equal to.
21    #[serde(rename = "gte", default, skip_serializing_if = "Option::is_none")]
22    pub gte: Option<f64>,  /// Less than.
23    #[serde(rename = "lt", default, skip_serializing_if = "Option::is_none")]
24    pub lt: Option<f64>,  /// Less than or equal to.
25    #[serde(rename = "lte", default, skip_serializing_if = "Option::is_none")]
26    pub lte: Option<f64>,
27}
28
29impl Key {
30      /// The key.
31    pub fn new() -> Key {
32        Key {
33            gt: None,
34            gte: None,
35            lt: None,
36            lte: None,
37        }
38    }
39}