I have a type which behaves the same as an Option in that it wraps another type which might or might not be there. It has some extra logic that is specific to my app. I want to give it the same behavior that an Option has i.e only validate if the value is there and pass on all validation settings to the wrapped type. How should I go about achieving this.
I have a type which behaves the same as an
Option
in that it wraps another type which might or might not be there. It has some extra logic that is specific to my app. I want to give it the same behavior that anOption
has i.e only validate if the value is there and pass on all validation settings to the wrapped type. How should I go about achieving this.