Skip to content

Add getters for WebIDL's dictionaries. #1793

Closed
@alexlapa

Description

@alexlapa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    web-sysIssues related to the `web-sys` crate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions