mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-27 12:17:24 +01:00
database: Remove serde
This commit is contained in:
parent
32ecf2d4bd
commit
678367ec1a
8 changed files with 12 additions and 71 deletions
|
|
@ -2,11 +2,9 @@ use super::schema::persons;
|
|||
use super::{Database, Result};
|
||||
use diesel::prelude::*;
|
||||
use log::info;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// A person that is a composer, an interpret or both.
|
||||
#[derive(Serialize, Deserialize, Insertable, Queryable, PartialEq, Eq, Hash, Debug, Clone)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[derive(Insertable, Queryable, PartialEq, Eq, Hash, Debug, Clone)]
|
||||
pub struct Person {
|
||||
pub id: String,
|
||||
pub first_name: String,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue