trieve_client/models/
searches_with_clicks.rs

1/*
2 * Trieve API
3 *
4 * Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5 *
6 * The version of the OpenAPI document: 0.11.7
7 * Contact: developers@trieve.ai
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct SearchesWithClicks {
15    #[serde(rename = "filter", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
16    pub filter: Option<Option<Box<models::SearchAnalyticsFilter>>>,
17    #[serde(rename = "page", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
18    pub page: Option<Option<i32>>,
19    #[serde(rename = "type")]
20    pub r#type: Type,
21}
22
23impl SearchesWithClicks {
24    pub fn new(r#type: Type) -> SearchesWithClicks {
25        SearchesWithClicks {
26            filter: None,
27            page: None,
28            r#type,
29        }
30    }
31}
32/// 
33#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
34pub enum Type {
35    #[serde(rename = "searches_with_clicks")]
36    SearchesWithClicks,
37}
38
39impl Default for Type {
40    fn default() -> Type {
41        Self::SearchesWithClicks
42    }
43}
44