vibe.d beta banner
get vibe.d
0.7.30

Function ignore

Attribute for marking non-serialized fields.

Prototype

IgnoreAttribute!Policy ignore(alias Policy)() @property;

Example

struct Test {
	// is neither serialized not deserialized
	@ignore int screenSize;
}

Example

template CustomPolicy(T) {
	// ...
}

struct Test {
	// not (de)serialized for serializeWithPolicy!(Test, CustomPolicy)
	// but for other policies or when serialized without a policy
	@ignore!CustomPolicy int screenSize;
}
block ddox.authorsblock ddox.copyrightblock ddox.license
Authors
Copyright
License