fix: use response model for search suggestion

This commit is contained in:
ThetaDev 2023-05-01 10:51:12 +02:00
parent f420200f52
commit 20ecea65ef
3 changed files with 12 additions and 8 deletions

View file

@ -33,6 +33,7 @@ pub(crate) use player::Player;
pub(crate) use playlist::Playlist;
pub(crate) use playlist::PlaylistCont;
pub(crate) use search::Search;
pub(crate) use search::SearchSuggestion;
pub(crate) use trends::Startpage;
pub(crate) use trends::Trending;
pub(crate) use url_endpoint::ResolvedUrl;

View file

@ -1,4 +1,4 @@
use serde::Deserialize;
use serde::{de::IgnoredAny, Deserialize};
use serde_with::{json::JsonString, serde_as};
use super::{video_item::YouTubeListRendererWrap, ResponseContext};
@ -24,3 +24,10 @@ pub(crate) struct Contents {
pub(crate) struct TwoColumnSearchResultsRenderer {
pub primary_contents: YouTubeListRendererWrap,
}
#[derive(Debug, Deserialize)]
pub(crate) struct SearchSuggestion(
IgnoredAny,
pub Vec<(String, IgnoredAny, IgnoredAny)>,
IgnoredAny,
);