Structs

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