Build structure from colon separate fields like
name:colon builder hobbies: book,game,football TV: once a while
Sample code
#[derive(ColonBuilder)] struct Person { #[cb(require)] name: String, hobbies: Vec<String>, #[cb(abbr="TV")] favoriteTVShows: Option<String> } let p = Person::from_str("name:lu\nTV:show");
cargo expand --test test_builder to expand the test file test_builder.rs
cargo expand --test test_builder
test_builder.rs