How to overload `ConstructionBase.setproperties` to change struct properties?

Solution:

@using Setfield, ConstructionBase, Turing

alg = NUTS(0.65)

ConstructionBase.constructorof(::Type{NUTS{A, B, C}}) where {A, B, C} = (x…) → NUTS{A, B, C}(x…)

@set! alg.max_depth = 4