trieve_client/models/
searches_with_clicks.rs1use 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#[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