1#[derive(Debug, Clone, Eq, PartialEq)]
2pub struct IdNotFound {
3 pub id: String,
4}
5
6impl std::error::Error for IdNotFound {}
7
8impl std::fmt::Display for IdNotFound {
9 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
10 write!(f, "Id not found: {}", self.id)
11 }
12}