We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10a0558 commit c0838f2Copy full SHA for c0838f2
1 file changed
source/mir/serde.d
@@ -65,6 +65,23 @@ version (D_Exceptions)
65
}
66
67
68
+/++
69
+Constructs annotated type.
70
++/
71
+template SerdeAnnotated(T, string annotation)
72
+{
73
+ ///
74
+ @serdeAlgebraicAnnotation(annotation)
75
+ @serdeProxy!T
76
+ struct SerdeAnnotated
77
+ {
78
79
+ T value;
80
81
+ alias value this;
82
+ }
83
+}
84
+
85
/++
86
Helper enumeration for for serializer .
87
Use negative `int` values for user defined targets.
0 commit comments