pub fn define_property( target: &Object, property_key: &JsValue, attributes: &Object, ) -> Result<bool, JsValue>
The static Reflect.defineProperty() method is like Object.defineProperty() but returns a Boolean.
Reflect.defineProperty()
Object.defineProperty()
Boolean
MDN documentation