web_sys/features/
gen_ChromeFilePropertyBag.rs1#![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 = ChromeFilePropertyBag)]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `ChromeFilePropertyBag` dictionary."]
10 #[doc = ""]
11 #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"]
12 pub type ChromeFilePropertyBag;
13 #[doc = "Get the `lastModified` field of this object."]
14 #[doc = ""]
15 #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"]
16 #[wasm_bindgen(method, getter = "lastModified")]
17 pub fn get_last_modified(this: &ChromeFilePropertyBag) -> Option<f64>;
18 #[doc = "Change the `lastModified` field of this object."]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"]
21 #[wasm_bindgen(method, setter = "lastModified")]
22 pub fn set_last_modified(this: &ChromeFilePropertyBag, val: f64);
23 #[doc = "Change the `lastModified` field of this object."]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"]
26 #[wasm_bindgen(method, setter = "lastModified")]
27 pub fn set_last_modified_i32(this: &ChromeFilePropertyBag, val: i32);
28 #[doc = "Change the `lastModified` field of this object."]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"]
31 #[wasm_bindgen(method, setter = "lastModified")]
32 pub fn set_last_modified_f64(this: &ChromeFilePropertyBag, val: f64);
33 #[doc = "Get the `type` field of this object."]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"]
36 #[wasm_bindgen(method, getter = "type")]
37 pub fn get_type(this: &ChromeFilePropertyBag) -> Option<::alloc::string::String>;
38 #[doc = "Change the `type` field of this object."]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"]
41 #[wasm_bindgen(method, setter = "type")]
42 pub fn set_type(this: &ChromeFilePropertyBag, val: &str);
43 #[doc = "Get the `existenceCheck` field of this object."]
44 #[doc = ""]
45 #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"]
46 #[wasm_bindgen(method, getter = "existenceCheck")]
47 pub fn get_existence_check(this: &ChromeFilePropertyBag) -> Option<bool>;
48 #[doc = "Change the `existenceCheck` field of this object."]
49 #[doc = ""]
50 #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"]
51 #[wasm_bindgen(method, setter = "existenceCheck")]
52 pub fn set_existence_check(this: &ChromeFilePropertyBag, val: bool);
53 #[doc = "Get the `name` field of this object."]
54 #[doc = ""]
55 #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"]
56 #[wasm_bindgen(method, getter = "name")]
57 pub fn get_name(this: &ChromeFilePropertyBag) -> Option<::alloc::string::String>;
58 #[doc = "Change the `name` field of this object."]
59 #[doc = ""]
60 #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"]
61 #[wasm_bindgen(method, setter = "name")]
62 pub fn set_name(this: &ChromeFilePropertyBag, val: &str);
63}
64impl ChromeFilePropertyBag {
65 #[doc = "Construct a new `ChromeFilePropertyBag`."]
66 #[doc = ""]
67 #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"]
68 pub fn new() -> Self {
69 #[allow(unused_mut)]
70 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
71 ret
72 }
73 #[deprecated = "Use `set_last_modified()` instead."]
74 pub fn last_modified(&mut self, val: f64) -> &mut Self {
75 self.set_last_modified(val);
76 self
77 }
78 #[deprecated = "Use `set_type()` instead."]
79 pub fn type_(&mut self, val: &str) -> &mut Self {
80 self.set_type(val);
81 self
82 }
83 #[deprecated = "Use `set_existence_check()` instead."]
84 pub fn existence_check(&mut self, val: bool) -> &mut Self {
85 self.set_existence_check(val);
86 self
87 }
88 #[deprecated = "Use `set_name()` instead."]
89 pub fn name(&mut self, val: &str) -> &mut Self {
90 self.set_name(val);
91 self
92 }
93}
94impl Default for ChromeFilePropertyBag {
95 fn default() -> Self {
96 Self::new()
97 }
98}