web_sys/features/
gen_NavigationUpdateCurrentEntryOptions.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 = "NavigationUpdateCurrentEntryOptions"
10 )]
11 #[derive(Debug, Clone, PartialEq, Eq)]
12 #[doc = "The `NavigationUpdateCurrentEntryOptions` dictionary."]
13 #[doc = ""]
14 #[doc = "*This API requires the following crate features to be activated: `NavigationUpdateCurrentEntryOptions`*"]
15 pub type NavigationUpdateCurrentEntryOptions;
16 #[doc = "Get the `state` field of this object."]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `NavigationUpdateCurrentEntryOptions`*"]
19 #[wasm_bindgen(method, getter = "state")]
20 pub fn get_state(this: &NavigationUpdateCurrentEntryOptions) -> ::wasm_bindgen::JsValue;
21 #[doc = "Change the `state` field of this object."]
22 #[doc = ""]
23 #[doc = "*This API requires the following crate features to be activated: `NavigationUpdateCurrentEntryOptions`*"]
24 #[wasm_bindgen(method, setter = "state")]
25 pub fn set_state(this: &NavigationUpdateCurrentEntryOptions, val: &::wasm_bindgen::JsValue);
26}
27impl NavigationUpdateCurrentEntryOptions {
28 #[doc = "Construct a new `NavigationUpdateCurrentEntryOptions`."]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `NavigationUpdateCurrentEntryOptions`*"]
31 pub fn new(state: &::wasm_bindgen::JsValue) -> Self {
32 #[allow(unused_mut)]
33 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
34 ret.set_state(state);
35 ret
36 }
37 #[deprecated = "Use `set_state()` instead."]
38 pub fn state(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
39 self.set_state(val);
40 self
41 }
42}