1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
use derive_more::From; pub type Result<T> = core::result::Result<T, Error>; #[derive(Debug, From)] pub enum Error { InvalidPath, NotFound(String), #[from] Io(std::io::Error), #[from] Json(serde_json::Error), #[from] Http(reqwest::Error), #[from] EnvVar(std::env::VarError), }