Minor fix for making Theme insertable with Diesel
This commit is contained in:
parent
8f1e95bdde
commit
c1fcc80cf0
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue