Skip to content

Commit

Permalink
add serdeMembersExactly
Browse files Browse the repository at this point in the history
  • Loading branch information
9il committed Apr 23, 2024
1 parent f3d0b7f commit 277dd37
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions source/mir/serde.d
Original file line number Diff line number Diff line change
Expand Up @@ -2193,6 +2193,16 @@ version(mir_test) unittest
static assert(hasUDA!(SerdeOrderedDummy!S.d, serdeProxy));
}

/++
Exact amount of total serializable members in a structure/class.
The UDA is used to help CBOR and MsgPack serializers to construct finite length maps.
+/
struct serdeMembersExactly
{
///
int n;
}

/++
A dummy structure passed to `.serdeFinalizeWithFlags` finalizer method.
+/
Expand Down

0 comments on commit 277dd37

Please sign in to comment.