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