Skip to content
New issue

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

Add getters for WebIDL's dictionaries. #1793

Open
alexlapa opened this issue Sep 25, 2019 · 0 comments · May be fixed by #3933
Open

Add getters for WebIDL's dictionaries. #1793

alexlapa opened this issue Sep 25, 2019 · 0 comments · May be fixed by #3933
Labels
web-sys Issues related to the `web-sys` crate

Comments

@alexlapa
Copy link
Contributor

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

@alexlapa alexlapa added the enhancement New feature or request label Sep 25, 2019
@alexcrichton alexcrichton added web-sys Issues related to the `web-sys` crate and removed enhancement New feature or request labels Sep 26, 2019
@pablosichert pablosichert linked a pull request Apr 24, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
web-sys Issues related to the `web-sys` crate
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants