Generate getters for all WebIDL dictionary types and deprecate builder-pattern style setters
This introduces getters for all WebIDL dictionary types with the signature get_field(&self) -> Option<Type>.
This is unconventional for Rust as usually getters are called just field() and setters are called set_field(), unfortunately we can only do this in the future with a breaking change.
I also went ahead and deprecated the builder-pattern style setters in favor of exposing our currently already generated setters.
Replaces #3933. Fixes #1793.
I forgot to do this earlier, but cc @pablosichert @MOZGIII since you seem to be invested in this.
Sorry for being late, but this looks great!
When will this be released?
Agree, thanks a lot @daxpedda for getting this over the finish line.
I think you struck a good balance of at least deprecating the non-set_* methods so that they can eventually be phased out and make space for the getters.
When will this be released?
I'm going through my wasm-bindgen backlog right now, with luck today, otherwise tomorrow (TM).