Skip to main content

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