]> git.proxmox.com Git - rustc.git/blob - vendor/web-sys/src/features/gen_InstallTriggerData.rs
New upstream version 1.72.1+dfsg1
[rustc.git] / vendor / web-sys / src / features / gen_InstallTriggerData.rs
1 #![allow(unused_imports)]
2 #![allow(clippy::all)]
3 use super::*;
4 use wasm_bindgen::prelude::*;
5 #[wasm_bindgen]
6 extern "C" {
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = InstallTriggerData)]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `InstallTriggerData` dictionary."]
10 #[doc = ""]
11 #[doc = "*This API requires the following crate features to be activated: `InstallTriggerData`*"]
12 pub type InstallTriggerData;
13 }
14 impl InstallTriggerData {
15 #[doc = "Construct a new `InstallTriggerData`."]
16 #[doc = ""]
17 #[doc = "*This API requires the following crate features to be activated: `InstallTriggerData`*"]
18 pub fn new() -> Self {
19 #[allow(unused_mut)]
20 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
21 ret
22 }
23 #[doc = "Change the `Hash` field of this object."]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `InstallTriggerData`*"]
26 pub fn hash(&mut self, val: Option<&str>) -> &mut Self {
27 use wasm_bindgen::JsValue;
28 let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("Hash"), &JsValue::from(val));
29 debug_assert!(
30 r.is_ok(),
31 "setting properties should never fail on our dictionary objects"
32 );
33 let _ = r;
34 self
35 }
36 #[doc = "Change the `IconURL` field of this object."]
37 #[doc = ""]
38 #[doc = "*This API requires the following crate features to be activated: `InstallTriggerData`*"]
39 pub fn icon_url(&mut self, val: Option<&str>) -> &mut Self {
40 use wasm_bindgen::JsValue;
41 let r = ::js_sys::Reflect::set(
42 self.as_ref(),
43 &JsValue::from("IconURL"),
44 &JsValue::from(val),
45 );
46 debug_assert!(
47 r.is_ok(),
48 "setting properties should never fail on our dictionary objects"
49 );
50 let _ = r;
51 self
52 }
53 #[doc = "Change the `URL` field of this object."]
54 #[doc = ""]
55 #[doc = "*This API requires the following crate features to be activated: `InstallTriggerData`*"]
56 pub fn url(&mut self, val: &str) -> &mut Self {
57 use wasm_bindgen::JsValue;
58 let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("URL"), &JsValue::from(val));
59 debug_assert!(
60 r.is_ok(),
61 "setting properties should never fail on our dictionary objects"
62 );
63 let _ = r;
64 self
65 }
66 }
67 impl Default for InstallTriggerData {
68 fn default() -> Self {
69 Self::new()
70 }
71 }