Versioned data types with minimal boilerplate
Extruct is a proc-macro library that provides tools for listing named struct fields and implementing conversion from a larger struct containing fields with same names.
Macro helpers to derive new sub-structs from existing super-structs, potentially unpacking Options.
Compared with the original version, it provides the following additional features: * ability to initialize an instance from Hash * ability to pass a block on creation It's taken from Simone Carletti's whois: https://github.com/weppos/whois and has been put into this gem.
The SuperStruct class allows the easy and quick creation of classes that consist mainly of data. It borrows from Struct, OpenStruct, Array, Hash, ArrayFields, and others.