TestStruct

Undocumented in source.
version(unittest)
struct TestStruct {}

Members

Variables

a
int a;
Undocumented in source.
b
string b;
Undocumented in source.

Examples

It should serialize a struct

TestStruct value = TestStruct(1, "2");
const TestStruct cvalue = TestStruct(1, "2");
immutable TestStruct ivalue = TestStruct(1, "2");

SerializerRegistry.instance.serialize(value).should.equal(`TestStruct(1, "2")`);
SerializerRegistry.instance.serialize(cvalue).should.equal(`TestStruct(1, "2")`);
SerializerRegistry.instance.serialize(ivalue).should.equal(`TestStruct(1, "2")`);

Meta