1 2 3 4 5 6
pub type Error = ErrorStruct<'static>; #[derive(Debug)] pub struct ErrorStruct<'a> { pub code: u32, pub message: &'a str, }
1 2 3 4 5 6
pub type Error = ErrorStruct<'static>; #[derive(Debug)] pub struct ErrorStruct<'a> { pub code: u32, pub message: &'a str, }