serdeIgnoreIfAggregate.SerdeOrderedDummy

A dummy structure usefull serdeOrderedIn support.

Constructors

this
this(T value)
Undocumented in source.

Members

Aliases

__serdeOptionalRequired
alias __serdeOptionalRequired = serdeRequired
Undocumented in source.
__serdeOptionalRequired
alias __serdeOptionalRequired = serdeOptional
Undocumented in source.

Functions

serdeFinalizeTarget
void serdeFinalizeTarget(T value, SerdeFlags!T flags)

Initialize target members

serdeFinalizeTargetMember
void serdeFinalizeTargetMember(T value)

Initialize target member

serdeFinalizeWithFlags
void serdeFinalizeWithFlags(SerdeFlags!(typeof(this)) flags)

Initialize target members

Variables

__serdeFlags
SerdeFlags!(typeof(this)) __serdeFlags;
Undocumented in source.

Examples

import std.traits;

static struct S
{
    private double _d;

    @serdeProxy!int
    void d(double v) @property { _d = v; }

    string s;
}

static assert(is(typeof(SerdeOrderedDummy!S.init.d) == double), SerdeOrderedDummy!S.init.d);
static assert(is(typeof(SerdeOrderedDummy!S.init.s) == string));
static assert(hasUDA!(S.d, serdeProxy));
static assert(hasUDA!(SerdeOrderedDummy!S.d, serdeProxy));

Meta