1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//! ### Usage
//! ```
//! use rusty_booru::{danbooru::{client::DanbooruClient, DanbooruRating}};
//! use rusty_booru::shared::{client::{WithClientBuilder, DispatcherTrait}, Sort};
//!
//! #[tokio::main]
//! async fn main() {
//!     let posts = DanbooruClient::builder()
//!         .default_url("https://testbooru.donmai.us")
//!         .query(|q| {
//!             q.rating(DanbooruRating::General)
//!                 .sort(Sort::Score)
//!                 .limit(10)
//!         })
//!         .unwrap()
//!         .get()
//!         .await
//!         .expect("There was an error. (•-•)");
//!
//!     match posts.first() {
//!         Some(post) => println!("{:?}", post),
//!         None => panic!("Well... \"No posts found?\""),
//!     }
//! }
//! ```

pub mod danbooru;
pub mod gelbooru;
pub mod safebooru;
pub mod shared;
pub mod generic;