use constructor_lite::ConstructorLite; #[derive(Debug, PartialEq, ConstructorLite)] struct Movie { #[constructor(default)] title: String, year: Option, } #[test] fn test_default() { assert_eq!( Movie::new(), Movie { title: "".to_owned(), year: None } ) }