#[derive(optargs::OptStruct)] struct Example { a: i32, b: Option, } fn main() { let ex = Example! { a: 10, b: "asd".into() }; }