use constructor_lite::ConstructorLite; #[derive(Debug, PartialEq, ConstructorLite)] struct Movie { title: String, year: Option, genres: core::option::Option>, director: ::core::option::Option, composer: std::option::Option, cast: ::std::option::Option>, } #[test] fn test_option() { assert_eq!( Movie::new("Star Wars".to_owned()), Movie { title: "Star Wars".to_owned(), year: None, genres: None, director: None, composer: None, cast: None } ) }