Expand description
§Usage
use booru_rs::{danbooru::{DanbooruClient, DanbooruRating}, Sort, Client};
#[tokio::main]
async fn main() {
let posts = DanbooruClient::builder()
.rating(DanbooruRating::General)
.sort(Sort::Score)
.build()
.get()
.await
.expect("There was an error. (•-•)");
match posts.first() {
Some(post) => println!("{:?}", post),
None => panic!("Well... \"No posts found?\""),
}
}