mirror of
https://github.com/flibusta-apps/book_library_server.git
synced 2025-12-06 07:05:36 +01:00
20 lines
388 B
Rust
20 lines
388 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
use super::source::Source;
|
|
|
|
#[derive(sqlx::FromRow, sqlx::Type, Serialize)]
|
|
#[sqlx(type_name = "genre_type")]
|
|
pub struct Genre {
|
|
pub id: i32,
|
|
pub source: Source,
|
|
pub remote_id: i32,
|
|
pub code: String,
|
|
pub description: String,
|
|
pub meta: String,
|
|
}
|
|
|
|
#[derive(Deserialize)]
|
|
pub struct GenreFilter {
|
|
pub meta: Option<String>,
|
|
}
|