web_sys/features/
gen_Plugin.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Plugin , typescript_type = "Plugin")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `Plugin` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `Plugin`*"]
14 pub type Plugin;
15 # [wasm_bindgen (structural , method , getter , js_class = "Plugin" , js_name = description)]
16 #[doc = "Getter for the `description` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/description)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `Plugin`*"]
21 pub fn description(this: &Plugin) -> ::alloc::string::String;
22 # [wasm_bindgen (structural , method , getter , js_class = "Plugin" , js_name = filename)]
23 #[doc = "Getter for the `filename` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/filename)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `Plugin`*"]
28 pub fn filename(this: &Plugin) -> ::alloc::string::String;
29 # [wasm_bindgen (structural , method , getter , js_class = "Plugin" , js_name = version)]
30 #[doc = "Getter for the `version` field of this object."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/version)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `Plugin`*"]
35 pub fn version(this: &Plugin) -> ::alloc::string::String;
36 # [wasm_bindgen (structural , method , getter , js_class = "Plugin" , js_name = name)]
37 #[doc = "Getter for the `name` field of this object."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/name)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `Plugin`*"]
42 pub fn name(this: &Plugin) -> ::alloc::string::String;
43 # [wasm_bindgen (structural , method , getter , js_class = "Plugin" , js_name = length)]
44 #[doc = "Getter for the `length` field of this object."]
45 #[doc = ""]
46 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/length)"]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `Plugin`*"]
49 pub fn length(this: &Plugin) -> u32;
50 #[cfg(feature = "MimeType")]
51 # [wasm_bindgen (method , structural , js_class = "Plugin" , js_name = item)]
52 #[doc = "The `item()` method."]
53 #[doc = ""]
54 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/item)"]
55 #[doc = ""]
56 #[doc = "*This API requires the following crate features to be activated: `MimeType`, `Plugin`*"]
57 pub fn item(this: &Plugin, index: u32) -> Option<MimeType>;
58 #[cfg(feature = "MimeType")]
59 # [wasm_bindgen (method , structural , js_class = "Plugin" , js_name = namedItem)]
60 #[doc = "The `namedItem()` method."]
61 #[doc = ""]
62 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/namedItem)"]
63 #[doc = ""]
64 #[doc = "*This API requires the following crate features to be activated: `MimeType`, `Plugin`*"]
65 pub fn named_item(this: &Plugin, name: &str) -> Option<MimeType>;
66 #[cfg(feature = "MimeType")]
67 #[wasm_bindgen(method, structural, js_class = "Plugin", indexing_getter)]
68 #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
69 #[doc = ""]
70 #[doc = ""]
71 #[doc = ""]
72 #[doc = "*This API requires the following crate features to be activated: `MimeType`, `Plugin`*"]
73 pub fn get_with_index(this: &Plugin, index: u32) -> Option<MimeType>;
74 #[cfg(feature = "MimeType")]
75 #[wasm_bindgen(method, structural, js_class = "Plugin", indexing_getter)]
76 #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
77 #[doc = ""]
78 #[doc = ""]
79 #[doc = ""]
80 #[doc = "*This API requires the following crate features to be activated: `MimeType`, `Plugin`*"]
81 pub fn get_with_name(this: &Plugin, name: &str) -> Option<MimeType>;
82}