1 2 3 4 5 6 7 8 9 10
use derive_more::Display; use derive_new::new; use thiserror::Error; #[derive(new, Error, Debug, Display, PartialEq, Clone)] #[display("{}", msg)] /// An error produced by the link. pub struct LinkError { msg: String, }