web_sys/features/
gen_PerformanceEntryFilterOptions.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 = PerformanceEntryFilterOptions)]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `PerformanceEntryFilterOptions` dictionary."]
10    #[doc = ""]
11    #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"]
12    pub type PerformanceEntryFilterOptions;
13    #[doc = "Get the `entryType` field of this object."]
14    #[doc = ""]
15    #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"]
16    #[wasm_bindgen(method, getter = "entryType")]
17    pub fn get_entry_type(this: &PerformanceEntryFilterOptions) -> Option<::alloc::string::String>;
18    #[doc = "Change the `entryType` field of this object."]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"]
21    #[wasm_bindgen(method, setter = "entryType")]
22    pub fn set_entry_type(this: &PerformanceEntryFilterOptions, val: &str);
23    #[doc = "Get the `initiatorType` field of this object."]
24    #[doc = ""]
25    #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"]
26    #[wasm_bindgen(method, getter = "initiatorType")]
27    pub fn get_initiator_type(
28        this: &PerformanceEntryFilterOptions,
29    ) -> Option<::alloc::string::String>;
30    #[doc = "Change the `initiatorType` field of this object."]
31    #[doc = ""]
32    #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"]
33    #[wasm_bindgen(method, setter = "initiatorType")]
34    pub fn set_initiator_type(this: &PerformanceEntryFilterOptions, val: &str);
35    #[doc = "Get the `name` field of this object."]
36    #[doc = ""]
37    #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"]
38    #[wasm_bindgen(method, getter = "name")]
39    pub fn get_name(this: &PerformanceEntryFilterOptions) -> Option<::alloc::string::String>;
40    #[doc = "Change the `name` field of this object."]
41    #[doc = ""]
42    #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"]
43    #[wasm_bindgen(method, setter = "name")]
44    pub fn set_name(this: &PerformanceEntryFilterOptions, val: &str);
45}
46impl PerformanceEntryFilterOptions {
47    #[doc = "Construct a new `PerformanceEntryFilterOptions`."]
48    #[doc = ""]
49    #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"]
50    pub fn new() -> Self {
51        #[allow(unused_mut)]
52        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
53        ret
54    }
55    #[deprecated = "Use `set_entry_type()` instead."]
56    pub fn entry_type(&mut self, val: &str) -> &mut Self {
57        self.set_entry_type(val);
58        self
59    }
60    #[deprecated = "Use `set_initiator_type()` instead."]
61    pub fn initiator_type(&mut self, val: &str) -> &mut Self {
62        self.set_initiator_type(val);
63        self
64    }
65    #[deprecated = "Use `set_name()` instead."]
66    pub fn name(&mut self, val: &str) -> &mut Self {
67        self.set_name(val);
68        self
69    }
70}
71impl Default for PerformanceEntryFilterOptions {
72    fn default() -> Self {
73        Self::new()
74    }
75}