Crate youtube3_util [−] [src]
This crate provides a pager that can be used to page through results from the YT API.
Example usage
let pager = ItemPager::new(&hub, Box::new(|hub| hub.playlist_items() .list("snippet") .playlist_id("test") // minimize the amount of network requests by setting a large page size .max_results(50) )).unwrap(); for playlist_item in pager { println!("Item: {:?}", playlist_item); }
Reexports
pub extern crate google_youtube3 as youtube3; |
pub extern crate hyper; |
pub extern crate yup_oauth2; |
Structs
ItemPager |
Traits
ListCall | |
ListCallResponse | |
ListItem |