trieve_client/models/
sort_order.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 SortOrder {
16    #[serde(rename = "desc")]
17    Desc,
18    #[serde(rename = "asc")]
19    Asc,
20
21}
22
23impl ToString for SortOrder {
24    fn to_string(&self) -> String {
25        match self {
26            Self::Desc => String::from("desc"),
27            Self::Asc => String::from("asc"),
28        }
29    }
30}
31
32impl Default for SortOrder {
33    fn default() -> SortOrder {
34        Self::Desc
35    }
36}
37