How to design with immutable and also mutable type?

I assume that a mutable struct is much slower than a immutable one, but I’m not sure.

A(B(d)) not work. A and B have many (identical) fields other than data (not shown for simplicity).