-
Notifications
You must be signed in to change notification settings - Fork 8
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
Implementing tv show keywords #80
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a basic question on the output type.
} | ||
|
||
impl crate::prelude::Command for TVShowKeywords { | ||
type Output = TVShowKeywordsResult; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering what the id
field in this struct refers to. If it's only the TV show id, then we could just consider Vec<Keyword>
as the output type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id
is indeed the tv show id. Tmdb likes to send it back.
After cheking, this kind of implementation is used in many routes, company images, alternative names, alternative titles, just to name a few, where the result could be simplified to a single vector.
Also endpoints like tv show images, or movie credits also serialize the id
field where it could be skipped.
So what should be done ?
No description provided.