type
Change
Change is what a field transform returns: Keep, Set, or Clear. Its zero value means Keep. Clear empties the callback's own logical value; it does not create an external patch command or durable scalar removal representation.
Full signature
type Change[T any] struct {
// contains filtered or unexported fields
}Methods
Change.Replacement()Replacement returns the replacement value and whether replacement is asked. Ridu calls it to apply a transform's result; callbacks return Keep, Set, or Clear.