use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SearchesWithoutClicks {
#[serde(rename = "filter", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub filter: Option<Option<Box<models::SearchAnalyticsFilter>>>,
#[serde(rename = "page", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub page: Option<Option<i32>>,
#[serde(rename = "type")]
pub r#type: Type,
}
impl SearchesWithoutClicks {
pub fn new(r#type: Type) -> SearchesWithoutClicks {
SearchesWithoutClicks {
filter: None,
page: None,
r#type,
}
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
#[serde(rename = "searches_without_clicks")]
SearchesWithoutClicks,
}
impl Default for Type {
fn default() -> Type {
Self::SearchesWithoutClicks
}
}