database: Implement Hash for public structs

This commit is contained in:
Elias Projahn 2021-10-28 09:53:16 +02:00
parent b17ffc5db9
commit 05b18db18a
6 changed files with 11 additions and 11 deletions

View file

@ -5,7 +5,7 @@ use log::info;
use serde::{Deserialize, Serialize};
/// An ensemble that takes part in recordings.
#[derive(Serialize, Deserialize, Insertable, Queryable, Debug, Clone)]
#[derive(Serialize, Deserialize, Insertable, Queryable, PartialEq, Eq, Hash, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct Ensemble {
pub id: String,