We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently web-sys wrappers do not have any getters for WebIDL dictionaries (e.g. MediaStreamConstraints).
web-sys
Such fields can be accessed using js_sys::Reflect, which is quite awkward.
Add getters for WebIDL dictionaries fields.
Some generic getter like: fn get(name:&str) -> JsValue
fn get(name:&str) -> JsValue
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Motivation
Currently
web-sys
wrappers do not have any getters for WebIDL dictionaries (e.g. MediaStreamConstraints).Such fields can be accessed using js_sys::Reflect, which is quite awkward.
Proposed Solution
Add getters for WebIDL dictionaries fields.
Alternatives
Some generic getter like:
fn get(name:&str) -> JsValue
The text was updated successfully, but these errors were encountered: