Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Code generation

SuperStruct generates several types, methods and trait implementations.

You should visit each of the sub-pages in order to understand how the generated code fits together:

  1. Variant structs.
  2. Top-level enum.
  3. Ref and RefMut.
  4. Mapping macros.
  5. Meta variant structs and enums.

Example

For a full, up-to-date example of the code generated, please see the RustDoc output for the Request example.