1 2 3 4 5 6 7 8 9
use ipp::model::StatusCode; use thiserror::Error; #[derive(Error, Debug, Clone)] #[error("{code} {msg:?}")] pub struct IppError { pub code: StatusCode, pub msg: String, }