1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
use serde::{Serialize, Deserialize};
use crate::database::sql::enums::sql_symbol::SqlSymbol;

#[derive(Serialize, Deserialize, Clone, Debug)]
pub enum Order {
    ASC, DESC
}

impl SqlSymbol for Order {
    fn symbol(self) -> &'static str {
        return match self {
            Order::ASC => "ASC",
            Order::DESC => "DESC"
        }
    }
}