use rusty_german_entity_macro::RustyEntity; use rusty_german_types::Exercise; #[derive(RustyEntity)] pub struct Entity { #[entity(description)] pub phrase: String, #[entity(expected_results)] pub prepositions: Vec, } fn main() { let entity = Entity { phrase: "test".to_owned(), prepositions: vec!["prep".to_owned()], }; assert_eq!(entity.get_description(), "test"); assert_eq!(entity.get_expected_result(), ""); assert_eq!(entity.get_expected_results(), vec!["prep"]); }