Crate nekosbest[−][src]
Expand description
API wrapper for nekos.best
Re-exports
pub extern crate reqwest;
Modules
Allows getting image urls locally, without
making any request to the API, using only data
available from the GET /endpoints
endpoint,
and implementing LocalNekosBestCategory
with
the corresponding data on the generated structs.
Also see the build script.
Structs
A response from the api
A response from the api, in the case of requesting a single
url with get
or get_with_client
In the case of Category::Nekos
, the API
also returns the source url, the name and a
link to the artist that made it.
Enums
Constants
Functions
Gets a single image, with the default client.
Gets amount
images, with the default client.
Gets the source of a Category::Nekos
image,
by requesting it with the default client and reading the headers.
Gets the source of a Category::Nekos
image,
by requesting it with the given client and reading the headers.
Gets a single image, with a supplied client.
Gets amount
images, with a supplied client.
Note that the server clamps the amount to the 1..=20 range