Update anonymous_fields.md

This commit is contained in:
liuzicheng1987
2023-11-15 21:13:53 +01:00
committed by GitHub
parent 642ba44c12
commit 5937bac8c3
+4 -2
View File
@@ -16,5 +16,7 @@ This can be fully serialized and deserialized using `rfl::json::read` and `rfl::
However, there are a two things you have to keep in mind:
1) If you annotate *some* of the fields using either `rfl::Field` or `rfl::Flatten`, then you must annotate *all* of them using one of these two.
2) If you are combining structs using `rfl::Flatten`, then all fields in all structs must be annotated using either using either `rfl::Field` or `rfl::Flatten`.
1) If you annotate *some* of the fields using either `rfl::Field`, then you must annotate *all* of them using one of these two.
2) If you are combining structs using `rfl::Flatten`, then they structs combined like this must either be annotated or not.