fix: use generic SectionListRenderer
This commit is contained in:
parent
2cd74b1da8
commit
c80e302d72
4 changed files with 7 additions and 30 deletions
|
|
@ -58,7 +58,7 @@ pub(crate) struct TabRenderer {
|
|||
pub(crate) struct TabContent {
|
||||
#[serde(default)]
|
||||
#[serde_as(as = "DefaultOnError")]
|
||||
pub section_list_renderer: Option<SectionListRenderer>,
|
||||
pub section_list_renderer: Option<ContentsRenderer<ItemSectionRendererWrap>>,
|
||||
/// Seems to be currently A/B tested, as of 11.10.2022
|
||||
#[serde(default)]
|
||||
#[serde_as(as = "DefaultOnError")]
|
||||
|
|
@ -83,12 +83,6 @@ pub(crate) struct ChannelTabWebCommandMetadata {
|
|||
pub url: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub(crate) struct SectionListRenderer {
|
||||
pub contents: Vec<ItemSectionRendererWrap>,
|
||||
}
|
||||
|
||||
/// Seems to be currently A/B tested, as of 11.10.2022
|
||||
#[serde_as]
|
||||
#[derive(Debug, Deserialize)]
|
||||
|
|
|
|||
Reference in a new issue