The project is not completed
Generic
proc_marco
onto field on SubModelsusing all
or none
define sub model type
all
default all of the field is a part of the sub modelnone
default is an empty structin the all
or none
```rust ignore
```
name = "foo"
there a a set of information can be define
vis
the visibility of the sub model, default pub
name
the name of the sub modelextra_field
the extra field of the sub model, can use like that
ty
define the type of extra fieldfrom
define how to create the value in this field, it accept a path to a function without any params```rust ignore
name = "foo",
extra_field(
foo(ty = "bool", from = "Default::default")
))] ```
the example add a new field named foo
with type bool
,create by Default::default
to sub model foo
extra
other marco that add to this new sub model, for example```rust ignore
name = "foo",
extra(
derive(Debug, Serialize, Deserialize)
))] ```
the example make the sub model foo
can serialize
and deserialize