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