[Example](https://forum.rescript-lang.org/t/how-can-i-achieve-smart-constructor-pattern-from-f-in-rescript/2590/4)