Skip to main content

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