alltalk 0.1.0

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

#[derive(Error, Debug)]
pub enum AllTalkError {
  #[error("Error reading file")]
  IOError(#[from] std::io::Error),
  #[error("Error during request")]
  ReqwestError(#[from] reqwest::Error),
  #[error("Error parsing the url")]
  URLParserError(#[from] url::ParseError),
  #[error("Unable to parse {json:?} into {target:?}")]
  JsonParserError { json: String, target: String },
  #[error("Invalid response {0}")]
  ResponseError(String),
}