Skip to main content

web_sys/features/
gen_NavigationHistoryEntry.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 = "EventTarget",
9        extends = "::js_sys::Object",
10        js_name = "NavigationHistoryEntry",
11        typescript_type = "NavigationHistoryEntry"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `NavigationHistoryEntry` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigationHistoryEntry)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `NavigationHistoryEntry`*"]
19    pub type NavigationHistoryEntry;
20    #[wasm_bindgen(method, getter, js_class = "NavigationHistoryEntry", js_name = "url")]
21    #[doc = "Getter for the `url` field of this object."]
22    #[doc = ""]
23    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigationHistoryEntry/url)"]
24    #[doc = ""]
25    #[doc = "*This API requires the following crate features to be activated: `NavigationHistoryEntry`*"]
26    pub fn url(this: &NavigationHistoryEntry) -> Option<::alloc::string::String>;
27    #[wasm_bindgen(method, getter, js_class = "NavigationHistoryEntry", js_name = "key")]
28    #[doc = "Getter for the `key` field of this object."]
29    #[doc = ""]
30    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigationHistoryEntry/key)"]
31    #[doc = ""]
32    #[doc = "*This API requires the following crate features to be activated: `NavigationHistoryEntry`*"]
33    pub fn key(this: &NavigationHistoryEntry) -> ::alloc::string::String;
34    #[wasm_bindgen(method, getter, js_class = "NavigationHistoryEntry", js_name = "id")]
35    #[doc = "Getter for the `id` field of this object."]
36    #[doc = ""]
37    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigationHistoryEntry/id)"]
38    #[doc = ""]
39    #[doc = "*This API requires the following crate features to be activated: `NavigationHistoryEntry`*"]
40    pub fn id(this: &NavigationHistoryEntry) -> ::alloc::string::String;
41    #[wasm_bindgen(method, getter, js_class = "NavigationHistoryEntry", js_name = "index")]
42    #[doc = "Getter for the `index` field of this object."]
43    #[doc = ""]
44    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigationHistoryEntry/index)"]
45    #[doc = ""]
46    #[doc = "*This API requires the following crate features to be activated: `NavigationHistoryEntry`*"]
47    pub fn index(this: &NavigationHistoryEntry) -> f64;
48    #[wasm_bindgen(
49        method,
50        getter,
51        js_class = "NavigationHistoryEntry",
52        js_name = "sameDocument"
53    )]
54    #[doc = "Getter for the `sameDocument` field of this object."]
55    #[doc = ""]
56    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigationHistoryEntry/sameDocument)"]
57    #[doc = ""]
58    #[doc = "*This API requires the following crate features to be activated: `NavigationHistoryEntry`*"]
59    pub fn same_document(this: &NavigationHistoryEntry) -> bool;
60    #[wasm_bindgen(
61        method,
62        getter,
63        js_class = "NavigationHistoryEntry",
64        js_name = "ondispose"
65    )]
66    #[doc = "Getter for the `ondispose` field of this object."]
67    #[doc = ""]
68    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigationHistoryEntry/ondispose)"]
69    #[doc = ""]
70    #[doc = "*This API requires the following crate features to be activated: `NavigationHistoryEntry`*"]
71    pub fn ondispose(this: &NavigationHistoryEntry) -> Option<::js_sys::Function>;
72    #[wasm_bindgen(
73        method,
74        setter,
75        js_class = "NavigationHistoryEntry",
76        js_name = "ondispose"
77    )]
78    #[doc = "Setter for the `ondispose` field of this object."]
79    #[doc = ""]
80    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigationHistoryEntry/ondispose)"]
81    #[doc = ""]
82    #[doc = "*This API requires the following crate features to be activated: `NavigationHistoryEntry`*"]
83    pub fn set_ondispose(this: &NavigationHistoryEntry, value: Option<&::js_sys::Function>);
84    #[wasm_bindgen(method, js_class = "NavigationHistoryEntry", js_name = "getState")]
85    #[doc = "The `getState()` method."]
86    #[doc = ""]
87    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigationHistoryEntry/getState)"]
88    #[doc = ""]
89    #[doc = "*This API requires the following crate features to be activated: `NavigationHistoryEntry`*"]
90    pub fn get_state(this: &NavigationHistoryEntry) -> ::wasm_bindgen::JsValue;
91}