serdeIgnoreIfAggregate.serdeIsSerializable

Is deserializable member

struct serdeIgnoreIfAggregate(alias pred)
template serdeIsSerializable (
T
) {}

Members

Variables

serdeIsSerializable
enum bool serdeIsSerializable(string member);

Examples

static struct S
{
    @serdeIgnore
    int i;

    @serdeKeys("a", "b")
    int a;
}

alias serdeIsSerializableInS = serdeIsSerializable!S;
static assert (!serdeIsSerializableInS!"i");
static assert (serdeIsSerializableInS!"a");

Meta