SubModel
The project is not completed
progress
- load necessary SubModel information from marco input
- generate codes
- field type mapping
- extra sub model field
- support
Generic - condition field type mapping
- a better way to add extra
proc_marcoonto field on SubModels
usage
using all or none define sub model type
alldefault all of the field is a part of the sub modelnonedefault is an empty struct
in the all or none
- if only need define the name of sub model, can use like that
- or else using full pattern
name = "foo"
there a a set of information can be define
visthe visibility of the sub model, defaultpubnamethe name of the sub modelextra_fieldthe extra field of the sub model, can use like that- the
tydefine the type of extra field - the
fromdefine how to create the value in this field, it accept a path to a function without any params
- the
the example add a new field named foo with type bool,create by Default::default to sub model foo
extraother marco that add to this new sub model, for example
the example make the sub model foo can serialize and deserialize