Skip to main content

web_sys/features/
gen_Plugin.rs

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