maxcountryman_web_sys/features/
gen_PerformanceEntry.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PerformanceEntry , typescript_type = "PerformanceEntry")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `PerformanceEntry` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"]
13 pub type PerformanceEntry;
14 # [wasm_bindgen (structural , method , getter , js_class = "PerformanceEntry" , js_name = name)]
15 #[doc = "Getter for the `name` field of this object."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/name)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"]
20 pub fn name(this: &PerformanceEntry) -> String;
21 # [wasm_bindgen (structural , method , getter , js_class = "PerformanceEntry" , js_name = entryType)]
22 #[doc = "Getter for the `entryType` field of this object."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/entryType)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"]
27 pub fn entry_type(this: &PerformanceEntry) -> String;
28 # [wasm_bindgen (structural , method , getter , js_class = "PerformanceEntry" , js_name = startTime)]
29 #[doc = "Getter for the `startTime` field of this object."]
30 #[doc = ""]
31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/startTime)"]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"]
34 pub fn start_time(this: &PerformanceEntry) -> f64;
35 # [wasm_bindgen (structural , method , getter , js_class = "PerformanceEntry" , js_name = duration)]
36 #[doc = "Getter for the `duration` field of this object."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/duration)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"]
41 pub fn duration(this: &PerformanceEntry) -> f64;
42 # [wasm_bindgen (method , structural , js_class = "PerformanceEntry" , js_name = toJSON)]
43 #[doc = "The `toJSON()` method."]
44 #[doc = ""]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/toJSON)"]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"]
48 pub fn to_json(this: &PerformanceEntry) -> ::js_sys::Object;
49}