diff --git a/CHANGELOG.md b/CHANGELOG.md index 7626b219..06e22d72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ ## 0.13.0 (2024.03.08) **New features** +- ([#490](https://github.com/ramsayleung/rspotify/pull/490)) Add impls for `Clone`, `Debug`, `PartialEq`, `Eq`, `Serialize` and `Hash` for `PlayContextId` and `PlayableId` - ([#458](https://github.com/ramsayleung/rspotify/pull/458)) Support for the `wasm32-unknown-unknown` build target **Bugfixes** diff --git a/rspotify-model/src/idtypes.rs b/rspotify-model/src/idtypes.rs index 1bfe5ede..e8dbc4a3 100644 --- a/rspotify-model/src/idtypes.rs +++ b/rspotify-model/src/idtypes.rs @@ -479,6 +479,7 @@ define_idtypes!( /// Grouping up multiple kinds of IDs to treat them generically. This also /// implements [`Id`], and [`From`] to instantiate it. #[enum_dispatch(Id)] +#[derive(Clone, Debug, PartialEq, Eq, Serialize, Hash)] pub enum PlayContextId<'a> { Artist(ArtistId<'a>), Album(AlbumId<'a>), @@ -521,6 +522,7 @@ impl<'a> PlayContextId<'a> { /// Grouping up multiple kinds of IDs to treat them generically. This also /// implements [`Id`] and [`From`] to instantiate it. #[enum_dispatch(Id)] +#[derive(Clone, Debug, PartialEq, Eq, Serialize, Hash)] pub enum PlayableId<'a> { Track(TrackId<'a>), Episode(EpisodeId<'a>),