this is a simpler version of my code.
type Res = Result<(), Box>; // defined before-hand pub trait Attr {