Skip to content

Commit fe74b87

Browse files
committed
add SerdeTarget
1 parent c1a29d2 commit fe74b87

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

source/mir/serde.d

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,28 @@ version (D_Exceptions)
6565
}
6666
}
6767

68+
/++
69+
Helper enumeration for for serializer .
70+
Use negative `int` values for user defined targets.
71+
+/
72+
enum SerdeTarget : int
73+
{
74+
///
75+
ion,
76+
///
77+
json,
78+
///
79+
cbor,
80+
///
81+
msgpack,
82+
///
83+
yaml,
84+
///
85+
csv,
86+
///
87+
excel,
88+
}
89+
6890
/++
6991
Attribute for key overloading during Serialization and Deserialization.
7092
The first argument overloads the key value during serialization unless `serdeKeyOut` is given.

0 commit comments

Comments
 (0)