vibe.d beta banner
get vibe.d
0.7.30

Function name

Attribute for overriding the field name during (de-)serialization.

Prototype

NameAttribute!Policy name(alias Policy)(
  string name
);

Example

struct Test {
	@name("screen-size") 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.