web_sys/features/
gen_NavigationDestination.rs1#![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 = "NavigationDestination",
10 typescript_type = "NavigationDestination"
11 )]
12 #[derive(Debug, Clone, PartialEq, Eq)]
13 #[doc = "The `NavigationDestination` class."]
14 #[doc = ""]
15 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigationDestination)"]
16 #[doc = ""]
17 #[doc = "*This API requires the following crate features to be activated: `NavigationDestination`*"]
18 pub type NavigationDestination;
19 #[wasm_bindgen(method, getter, js_class = "NavigationDestination", js_name = "url")]
20 #[doc = "Getter for the `url` field of this object."]
21 #[doc = ""]
22 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigationDestination/url)"]
23 #[doc = ""]
24 #[doc = "*This API requires the following crate features to be activated: `NavigationDestination`*"]
25 pub fn url(this: &NavigationDestination) -> ::alloc::string::String;
26 #[wasm_bindgen(method, getter, js_class = "NavigationDestination", js_name = "key")]
27 #[doc = "Getter for the `key` field of this object."]
28 #[doc = ""]
29 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigationDestination/key)"]
30 #[doc = ""]
31 #[doc = "*This API requires the following crate features to be activated: `NavigationDestination`*"]
32 pub fn key(this: &NavigationDestination) -> ::alloc::string::String;
33 #[wasm_bindgen(method, getter, js_class = "NavigationDestination", js_name = "id")]
34 #[doc = "Getter for the `id` field of this object."]
35 #[doc = ""]
36 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigationDestination/id)"]
37 #[doc = ""]
38 #[doc = "*This API requires the following crate features to be activated: `NavigationDestination`*"]
39 pub fn id(this: &NavigationDestination) -> ::alloc::string::String;
40 #[wasm_bindgen(method, getter, js_class = "NavigationDestination", js_name = "index")]
41 #[doc = "Getter for the `index` field of this object."]
42 #[doc = ""]
43 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigationDestination/index)"]
44 #[doc = ""]
45 #[doc = "*This API requires the following crate features to be activated: `NavigationDestination`*"]
46 pub fn index(this: &NavigationDestination) -> f64;
47 #[wasm_bindgen(
48 method,
49 getter,
50 js_class = "NavigationDestination",
51 js_name = "sameDocument"
52 )]
53 #[doc = "Getter for the `sameDocument` field of this object."]
54 #[doc = ""]
55 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigationDestination/sameDocument)"]
56 #[doc = ""]
57 #[doc = "*This API requires the following crate features to be activated: `NavigationDestination`*"]
58 pub fn same_document(this: &NavigationDestination) -> bool;
59 #[wasm_bindgen(method, js_class = "NavigationDestination", js_name = "getState")]
60 #[doc = "The `getState()` method."]
61 #[doc = ""]
62 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigationDestination/getState)"]
63 #[doc = ""]
64 #[doc = "*This API requires the following crate features to be activated: `NavigationDestination`*"]
65 pub fn get_state(this: &NavigationDestination) -> ::wasm_bindgen::JsValue;
66}