critique_api 0.1.0

Interface to the SensCritique API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

pub type Result<T, E = CritiqueError> = std::result::Result<T, E>;

#[derive(Error, Debug)]
pub enum CritiqueError {
    #[error("HTTP error: {0}")]
    HttpError(#[from] reqwest::Error),
    #[error("No data in response")]
    NoDataInResponse,
    #[error("Invalid media universe: {0}")]
    InvalidMediaUniverse(String),
}