trieve_client/models/
ctr_type.rs1use crate::models;
12
13#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
15pub enum CtrType {
16 #[serde(rename = "search")]
17 Search,
18 #[serde(rename = "recommendation")]
19 Recommendation,
20
21}
22
23impl ToString for CtrType {
24 fn to_string(&self) -> String {
25 match self {
26 Self::Search => String::from("search"),
27 Self::Recommendation => String::from("recommendation"),
28 }
29 }
30}
31
32impl Default for CtrType {
33 fn default() -> CtrType {
34 Self::Search
35 }
36}
37