1 2 3 4 5 6 7 8 9 10
use derive_more::Display; #[derive(Debug, Display)] pub enum UrlError { #[display("'{_0}' is already in the URL store")] AlreadyInStore(String), #[display("'{_0}' was not found in the URL store")] NotFound(String), }