Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix IDs #241

Closed
wants to merge 5 commits into from
Closed

Fix IDs #241

wants to merge 5 commits into from

Conversation

marioortizmanero
Copy link
Collaborator

@marioortizmanero marioortizmanero commented Aug 20, 2021

Description

This closes #203. It also includes a few more changes about IDs, like using them in rspotify-model, more tests and documenting them thoroughly.

Motivation and Context

I've fixed some of the issues I found about IDs. I still need to figure out :

  • how to take multiple types of IDs
  • how to fix some compiler issue about Deserialize<'_>

@marioortizmanero
Copy link
Collaborator Author

Closing this in favor of #243

pub type EpisodeIdBuf = IdBuf<Episode>;

/// A Spotify object id of given [type](crate::enums::types::Type).
/// A Spotify object ID of a given [type](crate::enums::types::Type).
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am a little confused that what's difference between the old Id wrapper and the new Id wrapper, it seems the only difference is that alias type declarations are moved into macro sealed_idtypes and an Unknown type has been added?

@marioortizmanero marioortizmanero mentioned this pull request Sep 11, 2021
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Endpoints with lists of Ids don't accept multiple of them
2 participants