Structs

  • a struct which implements a do_create method a method is used instead of a function so that it can be mocked to simplify unit testing

Enums

  • an enum passed into do_create to indicate whether the newly created entry is to be linked off a path (like an anchor for entry types) or a supplied entry hash