mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[PR #490] [MERGED] add derivable traits to PlayableId and PlayContextId #489
Labels
No labels
Stale
bug
discussion
enhancement
good first issue
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rspotify#489
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ramsayleung/rspotify/pull/490
Author: @SebRollen
Created: 8/22/2024
Status: ✅ Merged
Merged: 8/22/2024
Merged by: @ramsayleung
Base:
master← Head:playable-id-impl📝 Commits (2)
9820e3badd derivable traits to PlayableId and PlayContextId9ecd74cupdate readme📊 Changes
2 files changed (+3 additions, -0 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
rspotify-model/src/idtypes.rs(+2 -0)📄 Description
Description
This PR derives the traits
Clone,Debug,PartialEq,Eq,SerializeandHashforPlayContextIdandPlayableId. These two types are enums around other ID types that already derive the same traits.Motivation and Context
I'm currently working on a feature in a downstream crate and there are a few places where we could simplify the code a lot by having these traits be implemented for
PlayableId. I have less need of the same forPlayContextId, but figured I might as well add that to the PR so that all IDs are covered.Dependencies
None
Type of change
Please delete options that are not relevant.
How has this been tested?
Not tested
Is this change properly documented?
Changelog updated
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.