errlanes-derive 0.18.1

Derive macros for errlanes (Rejection, Lift, Failure)
Documentation
1
2
3
4
5
6
7
8
9
10
11
// Trailing arguments are restricted to field access paths (`field.member`);
// an arbitrary expression, like a method call, is rejected rather than
// accepted the way `thiserror` would.
#[derive(Debug, errlanes::Rejection)]
#[rejection(code = "X")]
#[error("bad: {}", id.to_string())]
struct Bad {
    id: i32,
}

fn main() {}