1 2 3 4 5 6 7 8 9
use new_derivable::New; #[derive(New, Debug)] pub struct TestStruct(String, usize); fn main() { let new = TestStruct(String::from("Justin"), 69); println!("{:?}", new) }