Pattern Builder

    Source: https://rust-unofficial.github.io/patterns/patterns/creational/builder.html

    My use case went away so didn’t bother generate a snippet like I planned but kept the link so it’s easier to find if this comes up again. Decided to let them create an object with default values and then change the fields as it suits them.