NonSerialized

This template is used to indicate that one or several fields should not be (de)serialized. If no fields or "this" is specified, it indicates that the whole class/struct should not be (de)serialized.

This template is used as a mixin.

Members

Static variables

__nonSerialized
enum __nonSerialized;
Undocumented in source.
__nonSerialized
enum __nonSerialized;
Undocumented in source.

Examples

class Foo
{
    int a;
    int b;

    mixin NonSerialized!(b); // "b" will not be (de)serialized
}

struct Bar
{
    int a;
    int b;

    mixin NonSerialized; // "Bar" will not be (de)serialized
}

Meta