feat: add video details response model

- add paginator, impl for playlist items
- small model refactor
- add ignore_any deserializer
- removed unnecessary clones in response mapping
This commit is contained in:
ThetaDev 2022-09-19 00:08:37 +02:00
parent 17b6844eb0
commit 972288d810
32 changed files with 61791 additions and 5316 deletions

View file

@ -148,9 +148,9 @@ pub struct SidebarItemPrimary {
#[serde(rename_all = "camelCase")]
pub struct SidebarPrimaryInfoRenderer {
pub thumbnail_renderer: PlaylistThumbnailRenderer,
// - `"495", " videos"`
// - `"3,310,996 views"`
// - `"Last updated on ", "Aug 7, 2022"`
/// - `"495", " videos"`
/// - `"3,310,996 views"`
/// - `"Last updated on ", "Aug 7, 2022"`
#[serde_as(as = "Vec<Text>")]
pub stats: Vec<String>,
}
@ -175,5 +175,4 @@ pub struct OnResponseReceivedAction {
pub struct AppendAction {
#[serde_as(as = "VecLogError<_>")]
pub continuation_items: MapResult<Vec<VideoListItem<PlaylistVideo>>>,
pub target_id: String,
}