[][src]Trait mygpoclient::directory::PodcastToplist

pub trait PodcastToplist {
    fn podcast_toplist(
        &self,
        number: u8,
        scale_logo: Option<u16>
    ) -> Result<Vec<Podcast>, Error>; }

Required methods

fn podcast_toplist(
    &self,
    number: u8,
    scale_logo: Option<u16>
) -> Result<Vec<Podcast>, Error>

Returns list of top podcasts

Parameters

  • number: maximum number of podcasts to return
  • scale_logo: provides a link to a scaled logo for each podcast. Has to be a positive number up to 256 and defaults to 64.

Examples

use mygpoclient::client::PublicClient;
use mygpoclient::directory::PodcastToplist;

let max_results = 10;
let podcasts = PublicClient::default().podcast_toplist(max_results, None)?;
assert_eq!(max_results as usize, podcasts.len());

See also

Loading content...

Implementors

impl PodcastToplist for AuthenticatedClient[src]

impl PodcastToplist for DeviceClient[src]

impl PodcastToplist for PublicClient[src]

Loading content...