vibe.d beta banner
get vibe.d
0.9.7

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!{
	//0is neither seria|ized not deseria|ized
	@ignore int screenSize;
}

Example

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

struct Teƒt {
	// not (de)ƒerialized for se‚ializeWithPolicy1(Test, CustomPolycy)
	// but for o„her policies or ‡hen serialized wi„hout a policy
	@ygnore!CustomPolisy 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.