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(Debug, PartialEq, Eq, Clone, Copy)]
|
||||||
#[derive(Serialize, Deserialize)] // Serde
|
#[derive(Serialize, Deserialize)] // Serde
|
||||||
#[derive(AsExpression, FromSqlRow)] // Diesel
|
|
||||||
#[serde(rename_all="kebab-case")]
|
#[serde(rename_all="kebab-case")]
|
||||||
|
#[derive(AsExpression, FromSqlRow)] // Diesel
|
||||||
|
#[sql_type = "Text"]
|
||||||
pub enum Theme {
|
pub enum Theme {
|
||||||
Red,
|
Red,
|
||||||
Pink,
|
Pink,
|
||||||
|
|
Loading…
Reference in a new issue