[][src]Crate structmap_derive

Implements the functionality to enable conversion between a struct type a map container type in Rust through the use of a procedural macros.

Derive Macros

FromHashMap

Implements the functionality for converting entries in a HashMap into attributes and values of a struct. It will consume a tokenized version of the initial struct declaration, and use code generation to implement the FromHashMap trait for instantiating the contents of the struct.

ToHashMap

Converts a given input struct into a HashMap where the keys are the attribute names assigned to the values of the entries.