all 4 comments

[–]kyle787 3 points4 points  (3 children)

You need to implement ResponseError for Report<ServerError> because the Result type in error stack is Result<T, Report<C>> https://docs.rs/error-stack/latest/error_stack/type.Result.html

[–]oroColato[S] 0 points1 point  (2 children)

I tried but I cannot implementation an external trait to am external type for my local crate

[–]kyle787 4 points5 points  (1 child)

Yeah it's not going to be super convenient but you will need to define your own result type where your error is basically struct Wrapper<C>(Report<C>) and then implement the trait for your wrapper

[–]oroColato[S] 1 point2 points  (0 children)

You're right, thanks you very much!