summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_MediaDeviceInfo.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/web-sys/src/features/gen_MediaDeviceInfo.rs')
-rw-r--r--vendor/web-sys/src/features/gen_MediaDeviceInfo.rs50
1 files changed, 50 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_MediaDeviceInfo.rs b/vendor/web-sys/src/features/gen_MediaDeviceInfo.rs
new file mode 100644
index 000000000..c3f9af20e
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_MediaDeviceInfo.rs
@@ -0,0 +1,50 @@
+#![allow(unused_imports)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaDeviceInfo , typescript_type = "MediaDeviceInfo")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `MediaDeviceInfo` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `MediaDeviceInfo`*"]
+ pub type MediaDeviceInfo;
+ # [wasm_bindgen (structural , method , getter , js_class = "MediaDeviceInfo" , js_name = deviceId)]
+ #[doc = "Getter for the `deviceId` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo/deviceId)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `MediaDeviceInfo`*"]
+ pub fn device_id(this: &MediaDeviceInfo) -> String;
+ #[cfg(feature = "MediaDeviceKind")]
+ # [wasm_bindgen (structural , method , getter , js_class = "MediaDeviceInfo" , js_name = kind)]
+ #[doc = "Getter for the `kind` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo/kind)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `MediaDeviceInfo`, `MediaDeviceKind`*"]
+ pub fn kind(this: &MediaDeviceInfo) -> MediaDeviceKind;
+ # [wasm_bindgen (structural , method , getter , js_class = "MediaDeviceInfo" , js_name = label)]
+ #[doc = "Getter for the `label` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo/label)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `MediaDeviceInfo`*"]
+ pub fn label(this: &MediaDeviceInfo) -> String;
+ # [wasm_bindgen (structural , method , getter , js_class = "MediaDeviceInfo" , js_name = groupId)]
+ #[doc = "Getter for the `groupId` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo/groupId)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `MediaDeviceInfo`*"]
+ pub fn group_id(this: &MediaDeviceInfo) -> String;
+ # [wasm_bindgen (method , structural , js_class = "MediaDeviceInfo" , js_name = toJSON)]
+ #[doc = "The `toJSON()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo/toJSON)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `MediaDeviceInfo`*"]
+ pub fn to_json(this: &MediaDeviceInfo) -> ::js_sys::Object;
+}