Skip to main content

trieve_client/models/
count_search_method.rs

1/*
2 * Trieve API
3 *
4 * Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5 *
6 * The version of the OpenAPI document: 0.11.7
7 * Contact: developers@trieve.ai
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13/// 
14#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
15pub enum CountSearchMethod {
16    #[serde(rename = "fulltext")]
17    Fulltext,
18    #[serde(rename = "semantic")]
19    Semantic,
20    #[serde(rename = "bm25")]
21    Bm25,
22
23}
24
25impl ToString for CountSearchMethod {
26    fn to_string(&self) -> String {
27        match self {
28            Self::Fulltext => String::from("fulltext"),
29            Self::Semantic => String::from("semantic"),
30            Self::Bm25 => String::from("bm25"),
31        }
32    }
33}
34
35impl Default for CountSearchMethod {
36    fn default() -> CountSearchMethod {
37        Self::Fulltext
38    }
39}
40