1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//! Colors of the heatmap

use diesel_derive_enum::DbEnum;
use serde::{Deserialize, Serialize};
use typeshare::typeshare;
use utoipa::ToSchema;

#[typeshare]
#[derive(Serialize, Deserialize, DbEnum, Debug, ToSchema, Clone)]
#[ExistingTypePath = "crate::schema::sql_types::HeatmapColor"]
pub enum HeatmapColor {
    #[serde(rename = "green")]
    #[db_rename = "green"]
    Green,

    #[serde(rename = "orange")]
    #[db_rename = "orange"]
    Orange,

    #[serde(rename = "red")]
    #[db_rename = "red"]
    Red,

    #[serde(rename = "black")]
    #[db_rename = "black"]
    Black,
}