From c1fcc80cf0c8be307abb1814662ec290118342dc Mon Sep 17 00:00:00 2001 From: Magnus Hovland Hoff Date: Sun, 23 Sep 2018 21:38:17 +0200 Subject: [PATCH] Minor fix for making Theme insertable with Diesel --- src/theme.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/theme.rs b/src/theme.rs index 1d553fd..29c43e9 100644 --- a/src/theme.rs +++ b/src/theme.rs @@ -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,