optargs 0.1.2

Easily create macros for functions with optional arguments
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[derive(optargs::OptStruct)]
struct Example {
    a: i32,
    b: Option<String>,
}

fn main() {
    let ex = Example! {
        a: 10,
        b: "asd".into()
    };
}