mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
database: Implement Hash for public structs
This commit is contained in:
parent
b17ffc5db9
commit
05b18db18a
6 changed files with 11 additions and 11 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue