mirror of
https://github.com/flibusta-apps/book_library_server.git
synced 2025-12-08 09:30:43 +01:00
Add pre-commit config
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use serde::{Serialize, Deserialize};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::prisma::genre;
|
||||
|
||||
@@ -11,7 +11,7 @@ pub struct Genre {
|
||||
pub remote_id: i32,
|
||||
pub code: String,
|
||||
pub description: String,
|
||||
pub meta: String
|
||||
pub meta: String,
|
||||
}
|
||||
|
||||
impl From<genre::Data> for Genre {
|
||||
@@ -32,12 +32,11 @@ impl From<genre::Data> for Genre {
|
||||
code,
|
||||
description,
|
||||
meta,
|
||||
source: source.unwrap().as_ref().clone().into()
|
||||
source: source.unwrap().as_ref().clone().into(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct GenreFilter {
|
||||
pub meta: Option<String>,
|
||||
|
||||
Reference in New Issue
Block a user