Setfield Update deeply nested immutable structs. Usage Updating deeply nested immutable structs was never easier: using Setfield @set obj.a.b.c = d For more information, see the documentation.