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