feat: add VideoId model

This commit is contained in:
ThetaDev 2023-03-10 17:31:41 +01:00
parent 2a4233e5d5
commit 900eb487ce
2 changed files with 63 additions and 2 deletions

View file

@ -893,6 +893,16 @@ pub struct PlaylistItem {
pub video_count: Option<u64>,
}
/// YouTube video identifier
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
#[non_exhaustive]
pub struct VideoId {
/// Video ID
pub id: String,
/// Video title
pub name: String,
}
/*
#MUSIC
*/