Minor fix for making Theme insertable with Diesel

This commit is contained in:
Magnus Hovland Hoff 2018-09-23 21:38:17 +02:00
parent 8f1e95bdde
commit c1fcc80cf0

View file

@ -9,8 +9,9 @@ use seahash;
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
#[derive(Serialize, Deserialize)] // Serde
#[derive(AsExpression, FromSqlRow)] // Diesel
#[serde(rename_all="kebab-case")]
#[derive(AsExpression, FromSqlRow)] // Diesel
#[sql_type = "Text"]
pub enum Theme {
Red,
Pink,