gelbooru-api 0.4.0

API for the Gelbooru image board
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use thiserror::Error;

#[derive(Error, Debug)]
pub enum Error {
    #[error("failed to parse authentication query string")]
    ParseAuth,
    #[error("could not parse user id")]
    ParseUserId(std::num::ParseIntError),
    #[error("request error")]
    Request(#[from] hyper::Error),
    #[error("an error occured deserializing json response")]
    JsonDeserialize(#[from] serde_json::Error),
    #[error("could not parse request Uri")]
    UriParse(#[from] http::uri::InvalidUri),
}