pub type Result = std::result::Result; #[derive(Debug, thiserror::Error)] pub enum Error { #[error("IO error: {0}")] IO(#[from] std::io::Error), #[error("Config error: {0}")] Toml(#[from] toml::de::Error), #[error("Request error: {0}")] Reqwest(#[from] reqwest::Error), #[error("Invalid HTTP method")] Method, }