]>
git.proxmox.com Git - rustc.git/blob - vendor/web-sys/src/features/gen_InstallTriggerData.rs
1 #![allow(unused_imports)]
4 use wasm_bindgen
::prelude
::*;
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = InstallTriggerData)]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `InstallTriggerData` dictionary."]
11 #[doc = "*This API requires the following crate features to be activated: `InstallTriggerData`*"]
12 pub type InstallTriggerData
;
14 impl InstallTriggerData
{
15 #[doc = "Construct a new `InstallTriggerData`."]
17 #[doc = "*This API requires the following crate features to be activated: `InstallTriggerData`*"]
18 pub fn new() -> Self {
20 let mut ret
: Self = ::wasm_bindgen
::JsCast
::unchecked_into(::js_sys
::Object
::new());
23 #[doc = "Change the `Hash` field of this object."]
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
));
31 "setting properties should never fail on our dictionary objects"
36 #[doc = "Change the `IconURL` field of this object."]
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(
43 &JsValue
::from("IconURL"),
48 "setting properties should never fail on our dictionary objects"
53 #[doc = "Change the `URL` field of this object."]
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
));
61 "setting properties should never fail on our dictionary objects"
67 impl Default
for InstallTriggerData
{
68 fn default() -> Self {