Expand description
This crate provides Rust bindings for Derpibooru API.
§Example usage:
use derpiboorust::{SyncAdapter, Search};
let adapter = SyncAdapter::new();
let request = Search::new("69 position,safe")
.min_score(70)
.max_score(120);
let response = adapter.send(request).unwrap();
println!("{:?}", response.search); // Vec<Image>
Re-exports§
pub use adapter::AsyncAdapter;
pub use adapter::SyncAdapter;
pub use request::Bound;
pub use request::Galleries;
pub use request::Gallery;
pub use request::Image;
pub use request::Images;
pub use request::Lists;
pub use request::Order;
pub use request::Search;
pub use request::Watched;
Modules§
- Adapters for making requests.
- Derpibooru models.
- API methods.