Rust API wrapper for nekos.best.
toml
[dependencies]
nekosbest = "0.16"
```rust ,no_run
async fn main() -> Result<(), Box
Or with an amount (amount is capped at 20 by the server):
```rust ,no_run
async fn main() -> Result<(), Box
Or if you already have a reqwest::Client
that you want to use,
use get_with_client
and get_with_client_amount
respectively.
There is another property called details
:
For Category::Neko
, Category::Husbando
, Category::Kitsune
, Category::Waifu
(image endpoints):
```rust ,no_run
async fn main() -> Result<(), Box
For everything else (GIF endpoints):
```rust ,no_run
async fn main() -> Result<(), Box
Or with the strong-types
feature, bringing strong types guarantees for details, so no unwrap
/ expect
for the details type:
Warning: Experimental, may change at any point in the future.
Remember to add the st_
in front of get
, get_amount
, get_with_client
and get_with_client_amount
.
Neko:
```rust ,no_run
async fn main() -> Result<(), Box
GIF:
```rust ,no_run
async fn main() -> Result<(), Box
All functions become blocking when used with the "blocking" feature.