Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 277dd37

Browse files
committedApr 23, 2024
add serdeMembersExactly
1 parent f3d0b7f commit 277dd37

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎source/mir/serde.d

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2193,6 +2193,16 @@ version(mir_test) unittest
21932193
static assert(hasUDA!(SerdeOrderedDummy!S.d, serdeProxy));
21942194
}
21952195

2196+
/++
2197+
Exact amount of total serializable members in a structure/class.
2198+
The UDA is used to help CBOR and MsgPack serializers to construct finite length maps.
2199+
+/
2200+
struct serdeMembersExactly
2201+
{
2202+
///
2203+
int n;
2204+
}
2205+
21962206
/++
21972207
A dummy structure passed to `.serdeFinalizeWithFlags` finalizer method.
21982208
+/

0 commit comments

Comments
 (0)
Please sign in to comment.