You could perhaps accomplish your first goal by making use of either set methods or making the struct fields Observable using Observables.jl and attach the recalculation behavior to the observable callback.
1 Like