web_sys/features/
gen_MediaMetadata.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(
9 extends = "::js_sys::Object",
10 js_name = "MediaMetadata",
11 typescript_type = "MediaMetadata"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `MediaMetadata` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `MediaMetadata`*"]
19 #[doc = ""]
20 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
21 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
22 pub type MediaMetadata;
23 #[cfg(web_sys_unstable_apis)]
24 #[wasm_bindgen(method, getter, js_class = "MediaMetadata", js_name = "title")]
25 #[doc = "Getter for the `title` field of this object."]
26 #[doc = ""]
27 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/title)"]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `MediaMetadata`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
33 pub fn title(this: &MediaMetadata) -> ::alloc::string::String;
34 #[cfg(web_sys_unstable_apis)]
35 #[wasm_bindgen(method, setter, js_class = "MediaMetadata", js_name = "title")]
36 #[doc = "Setter for the `title` field of this object."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/title)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `MediaMetadata`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
44 pub fn set_title(this: &MediaMetadata, value: &str);
45 #[cfg(web_sys_unstable_apis)]
46 #[wasm_bindgen(method, getter, js_class = "MediaMetadata", js_name = "artist")]
47 #[doc = "Getter for the `artist` field of this object."]
48 #[doc = ""]
49 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/artist)"]
50 #[doc = ""]
51 #[doc = "*This API requires the following crate features to be activated: `MediaMetadata`*"]
52 #[doc = ""]
53 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
54 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
55 pub fn artist(this: &MediaMetadata) -> ::alloc::string::String;
56 #[cfg(web_sys_unstable_apis)]
57 #[wasm_bindgen(method, setter, js_class = "MediaMetadata", js_name = "artist")]
58 #[doc = "Setter for the `artist` field of this object."]
59 #[doc = ""]
60 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/artist)"]
61 #[doc = ""]
62 #[doc = "*This API requires the following crate features to be activated: `MediaMetadata`*"]
63 #[doc = ""]
64 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
65 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
66 pub fn set_artist(this: &MediaMetadata, value: &str);
67 #[cfg(web_sys_unstable_apis)]
68 #[wasm_bindgen(method, getter, js_class = "MediaMetadata", js_name = "album")]
69 #[doc = "Getter for the `album` field of this object."]
70 #[doc = ""]
71 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/album)"]
72 #[doc = ""]
73 #[doc = "*This API requires the following crate features to be activated: `MediaMetadata`*"]
74 #[doc = ""]
75 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
76 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
77 pub fn album(this: &MediaMetadata) -> ::alloc::string::String;
78 #[cfg(web_sys_unstable_apis)]
79 #[wasm_bindgen(method, setter, js_class = "MediaMetadata", js_name = "album")]
80 #[doc = "Setter for the `album` field of this object."]
81 #[doc = ""]
82 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/album)"]
83 #[doc = ""]
84 #[doc = "*This API requires the following crate features to be activated: `MediaMetadata`*"]
85 #[doc = ""]
86 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
87 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
88 pub fn set_album(this: &MediaMetadata, value: &str);
89 #[cfg(web_sys_unstable_apis)]
90 #[cfg(feature = "MediaImage")]
91 #[wasm_bindgen(method, getter, js_class = "MediaMetadata", js_name = "artwork")]
92 #[doc = "Getter for the `artwork` field of this object."]
93 #[doc = ""]
94 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/artwork)"]
95 #[doc = ""]
96 #[doc = "*This API requires the following crate features to be activated: `MediaImage`, `MediaMetadata`*"]
97 #[doc = ""]
98 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
99 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
100 pub fn artwork(this: &MediaMetadata) -> ::js_sys::Array<MediaImage>;
101 #[cfg(web_sys_unstable_apis)]
102 #[cfg(feature = "MediaImage")]
103 #[wasm_bindgen(method, setter, js_class = "MediaMetadata", js_name = "artwork")]
104 #[doc = "Setter for the `artwork` field of this object."]
105 #[doc = ""]
106 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/artwork)"]
107 #[doc = ""]
108 #[doc = "*This API requires the following crate features to be activated: `MediaImage`, `MediaMetadata`*"]
109 #[doc = ""]
110 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
111 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
112 pub fn set_artwork(this: &MediaMetadata, value: &[MediaImage]);
113 #[cfg(web_sys_unstable_apis)]
114 #[wasm_bindgen(catch, constructor, js_class = "MediaMetadata")]
115 #[doc = "The `new MediaMetadata(..)` constructor, creating a new instance of `MediaMetadata`."]
116 #[doc = ""]
117 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/MediaMetadata)"]
118 #[doc = ""]
119 #[doc = "*This API requires the following crate features to be activated: `MediaMetadata`*"]
120 #[doc = ""]
121 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
122 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
123 pub fn new() -> Result<MediaMetadata, JsValue>;
124 #[cfg(web_sys_unstable_apis)]
125 #[cfg(feature = "MediaMetadataInit")]
126 #[wasm_bindgen(catch, constructor, js_class = "MediaMetadata")]
127 #[doc = "The `new MediaMetadata(..)` constructor, creating a new instance of `MediaMetadata`."]
128 #[doc = ""]
129 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/MediaMetadata)"]
130 #[doc = ""]
131 #[doc = "*This API requires the following crate features to be activated: `MediaMetadata`, `MediaMetadataInit`*"]
132 #[doc = ""]
133 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
134 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
135 pub fn new_with_init(init: &MediaMetadataInit) -> Result<MediaMetadata, JsValue>;
136}