-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api/id3/orm: use song short inside full
- Loading branch information
Showing
3 changed files
with
10 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
use nghe_proc_macro::api_derive; | ||
use uuid::Uuid; | ||
|
||
use super::Song; | ||
use super::Short; | ||
use crate::id3::genre; | ||
|
||
#[api_derive] | ||
pub struct Full { | ||
#[serde(flatten)] | ||
pub song: Song, | ||
pub album: String, | ||
pub album_id: Uuid, | ||
pub short: Short, | ||
pub genres: genre::Genres, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters