core_api: add Default for Playlist

This commit is contained in:
Oystein Kristoffer Tveit 2024-12-12 12:19:38 +01:00
parent 13397a59f7
commit ac863c571e
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146

View File

@ -82,7 +82,7 @@ pub enum MpvDataType {
}
/// A mpv playlist.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[derive(Debug, Clone, PartialEq, Eq, Default, Serialize, Deserialize)]
pub struct Playlist(pub Vec<PlaylistEntry>);
/// A single entry in the mpv playlist.