vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Function ignore

Attribute for marking non-serialized fields.

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;
}
Authors

Sönke Ludwig

Copyright

© 2013-2016 rejectedsoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.