Skip to main content

web_sys/features/
gen_PerformanceEntry.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 = "PerformanceEntry",
10        typescript_type = "PerformanceEntry"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `PerformanceEntry` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"]
18    pub type PerformanceEntry;
19    #[wasm_bindgen(method, getter, js_class = "PerformanceEntry", js_name = "name")]
20    #[doc = "Getter for the `name` field of this object."]
21    #[doc = ""]
22    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/name)"]
23    #[doc = ""]
24    #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"]
25    pub fn name(this: &PerformanceEntry) -> ::alloc::string::String;
26    #[wasm_bindgen(method, getter, js_class = "PerformanceEntry", js_name = "entryType")]
27    #[doc = "Getter for the `entryType` field of this object."]
28    #[doc = ""]
29    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/entryType)"]
30    #[doc = ""]
31    #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"]
32    pub fn entry_type(this: &PerformanceEntry) -> ::alloc::string::String;
33    #[wasm_bindgen(method, getter, js_class = "PerformanceEntry", js_name = "startTime")]
34    #[doc = "Getter for the `startTime` field of this object."]
35    #[doc = ""]
36    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/startTime)"]
37    #[doc = ""]
38    #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"]
39    pub fn start_time(this: &PerformanceEntry) -> f64;
40    #[wasm_bindgen(method, getter, js_class = "PerformanceEntry", js_name = "duration")]
41    #[doc = "Getter for the `duration` field of this object."]
42    #[doc = ""]
43    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/duration)"]
44    #[doc = ""]
45    #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"]
46    pub fn duration(this: &PerformanceEntry) -> f64;
47    #[wasm_bindgen(method, js_class = "PerformanceEntry", js_name = "toJSON")]
48    #[doc = "The `toJSON()` method."]
49    #[doc = ""]
50    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/toJSON)"]
51    #[doc = ""]
52    #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"]
53    pub fn to_json(this: &PerformanceEntry) -> ::js_sys::Object;
54}