web_sys/features/
gen_SvcOutputMetadata.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SvcOutputMetadata)]
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 #[doc = "The `SvcOutputMetadata` dictionary."]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `SvcOutputMetadata`*"]
13 #[doc = ""]
14 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
15 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
16 pub type SvcOutputMetadata;
17 #[cfg(web_sys_unstable_apis)]
18 #[doc = "Get the `temporalLayerId` field of this object."]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `SvcOutputMetadata`*"]
21 #[doc = ""]
22 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
23 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
24 #[wasm_bindgen(method, getter = "temporalLayerId")]
25 pub fn get_temporal_layer_id(this: &SvcOutputMetadata) -> Option<u32>;
26 #[cfg(web_sys_unstable_apis)]
27 #[doc = "Change the `temporalLayerId` field of this object."]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `SvcOutputMetadata`*"]
30 #[doc = ""]
31 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
32 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
33 #[wasm_bindgen(method, setter = "temporalLayerId")]
34 pub fn set_temporal_layer_id(this: &SvcOutputMetadata, val: u32);
35}
36#[cfg(web_sys_unstable_apis)]
37impl SvcOutputMetadata {
38 #[doc = "Construct a new `SvcOutputMetadata`."]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `SvcOutputMetadata`*"]
41 #[doc = ""]
42 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
43 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
44 pub fn new() -> Self {
45 #[allow(unused_mut)]
46 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
47 ret
48 }
49 #[cfg(web_sys_unstable_apis)]
50 #[deprecated = "Use `set_temporal_layer_id()` instead."]
51 pub fn temporal_layer_id(&mut self, val: u32) -> &mut Self {
52 self.set_temporal_layer_id(val);
53 self
54 }
55}
56#[cfg(web_sys_unstable_apis)]
57impl Default for SvcOutputMetadata {
58 fn default() -> Self {
59 Self::new()
60 }
61}