1 2 3 4 5 6 7 8 9 10 11
use std::fmt::Debug; use thiserror::Error; #[derive(Debug, Error)] pub enum DeserializationError { #[error("could not be serialized to json")] JsonDeserializationError, #[error("could not open file")] FileError, }