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