1 2 3 4 5 6 7 8 9 10 11 12 13
use booru::{Client, danbooru::DanbooruClient}; #[tokio::main] async fn main() { let posts = DanbooruClient::builder() .limit(5) .build() .get_popular() .await .expect("There was an error retrieving posts from the API"); println!("{:?}", posts); }