web_sys/features/
gen_FakePluginTagInit.rs

1#![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 = FakePluginTagInit)]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `FakePluginTagInit` dictionary."]
10    #[doc = ""]
11    #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"]
12    pub type FakePluginTagInit;
13    #[doc = "Get the `description` field of this object."]
14    #[doc = ""]
15    #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"]
16    #[wasm_bindgen(method, getter = "description")]
17    pub fn get_description(this: &FakePluginTagInit) -> Option<::alloc::string::String>;
18    #[doc = "Change the `description` field of this object."]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"]
21    #[wasm_bindgen(method, setter = "description")]
22    pub fn set_description(this: &FakePluginTagInit, val: &str);
23    #[doc = "Get the `fileName` field of this object."]
24    #[doc = ""]
25    #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"]
26    #[wasm_bindgen(method, getter = "fileName")]
27    pub fn get_file_name(this: &FakePluginTagInit) -> Option<::alloc::string::String>;
28    #[doc = "Change the `fileName` field of this object."]
29    #[doc = ""]
30    #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"]
31    #[wasm_bindgen(method, setter = "fileName")]
32    pub fn set_file_name(this: &FakePluginTagInit, val: &str);
33    #[doc = "Get the `fullPath` field of this object."]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"]
36    #[wasm_bindgen(method, getter = "fullPath")]
37    pub fn get_full_path(this: &FakePluginTagInit) -> Option<::alloc::string::String>;
38    #[doc = "Change the `fullPath` field of this object."]
39    #[doc = ""]
40    #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"]
41    #[wasm_bindgen(method, setter = "fullPath")]
42    pub fn set_full_path(this: &FakePluginTagInit, val: &str);
43    #[doc = "Get the `handlerURI` field of this object."]
44    #[doc = ""]
45    #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"]
46    #[wasm_bindgen(method, getter = "handlerURI")]
47    pub fn get_handler_uri(this: &FakePluginTagInit) -> ::alloc::string::String;
48    #[doc = "Change the `handlerURI` field of this object."]
49    #[doc = ""]
50    #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"]
51    #[wasm_bindgen(method, setter = "handlerURI")]
52    pub fn set_handler_uri(this: &FakePluginTagInit, val: &str);
53    #[doc = "Get the `mimeEntries` field of this object."]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"]
56    #[wasm_bindgen(method, getter = "mimeEntries")]
57    pub fn get_mime_entries(this: &FakePluginTagInit) -> ::js_sys::Array;
58    #[doc = "Change the `mimeEntries` field of this object."]
59    #[doc = ""]
60    #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"]
61    #[wasm_bindgen(method, setter = "mimeEntries")]
62    pub fn set_mime_entries(this: &FakePluginTagInit, val: &::wasm_bindgen::JsValue);
63    #[doc = "Get the `name` field of this object."]
64    #[doc = ""]
65    #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"]
66    #[wasm_bindgen(method, getter = "name")]
67    pub fn get_name(this: &FakePluginTagInit) -> Option<::alloc::string::String>;
68    #[doc = "Change the `name` field of this object."]
69    #[doc = ""]
70    #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"]
71    #[wasm_bindgen(method, setter = "name")]
72    pub fn set_name(this: &FakePluginTagInit, val: &str);
73    #[doc = "Get the `niceName` field of this object."]
74    #[doc = ""]
75    #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"]
76    #[wasm_bindgen(method, getter = "niceName")]
77    pub fn get_nice_name(this: &FakePluginTagInit) -> Option<::alloc::string::String>;
78    #[doc = "Change the `niceName` field of this object."]
79    #[doc = ""]
80    #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"]
81    #[wasm_bindgen(method, setter = "niceName")]
82    pub fn set_nice_name(this: &FakePluginTagInit, val: &str);
83    #[doc = "Get the `sandboxScript` field of this object."]
84    #[doc = ""]
85    #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"]
86    #[wasm_bindgen(method, getter = "sandboxScript")]
87    pub fn get_sandbox_script(this: &FakePluginTagInit) -> Option<::alloc::string::String>;
88    #[doc = "Change the `sandboxScript` field of this object."]
89    #[doc = ""]
90    #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"]
91    #[wasm_bindgen(method, setter = "sandboxScript")]
92    pub fn set_sandbox_script(this: &FakePluginTagInit, val: &str);
93    #[doc = "Get the `version` field of this object."]
94    #[doc = ""]
95    #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"]
96    #[wasm_bindgen(method, getter = "version")]
97    pub fn get_version(this: &FakePluginTagInit) -> Option<::alloc::string::String>;
98    #[doc = "Change the `version` field of this object."]
99    #[doc = ""]
100    #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"]
101    #[wasm_bindgen(method, setter = "version")]
102    pub fn set_version(this: &FakePluginTagInit, val: &str);
103}
104impl FakePluginTagInit {
105    #[doc = "Construct a new `FakePluginTagInit`."]
106    #[doc = ""]
107    #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"]
108    pub fn new(handler_uri: &str, mime_entries: &::wasm_bindgen::JsValue) -> Self {
109        #[allow(unused_mut)]
110        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
111        ret.set_handler_uri(handler_uri);
112        ret.set_mime_entries(mime_entries);
113        ret
114    }
115    #[deprecated = "Use `set_description()` instead."]
116    pub fn description(&mut self, val: &str) -> &mut Self {
117        self.set_description(val);
118        self
119    }
120    #[deprecated = "Use `set_file_name()` instead."]
121    pub fn file_name(&mut self, val: &str) -> &mut Self {
122        self.set_file_name(val);
123        self
124    }
125    #[deprecated = "Use `set_full_path()` instead."]
126    pub fn full_path(&mut self, val: &str) -> &mut Self {
127        self.set_full_path(val);
128        self
129    }
130    #[deprecated = "Use `set_handler_uri()` instead."]
131    pub fn handler_uri(&mut self, val: &str) -> &mut Self {
132        self.set_handler_uri(val);
133        self
134    }
135    #[deprecated = "Use `set_mime_entries()` instead."]
136    pub fn mime_entries(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
137        self.set_mime_entries(val);
138        self
139    }
140    #[deprecated = "Use `set_name()` instead."]
141    pub fn name(&mut self, val: &str) -> &mut Self {
142        self.set_name(val);
143        self
144    }
145    #[deprecated = "Use `set_nice_name()` instead."]
146    pub fn nice_name(&mut self, val: &str) -> &mut Self {
147        self.set_nice_name(val);
148        self
149    }
150    #[deprecated = "Use `set_sandbox_script()` instead."]
151    pub fn sandbox_script(&mut self, val: &str) -> &mut Self {
152        self.set_sandbox_script(val);
153        self
154    }
155    #[deprecated = "Use `set_version()` instead."]
156    pub fn version(&mut self, val: &str) -> &mut Self {
157        self.set_version(val);
158        self
159    }
160}