web_sys/features/
gen_AuthenticationExtensionsPrfOutputs.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsPRFOutputs)]
9    #[derive(Debug, Clone, PartialEq, Eq)]
10    #[doc = "The `AuthenticationExtensionsPrfOutputs` dictionary."]
11    #[doc = ""]
12    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfOutputs`*"]
13    #[doc = ""]
14    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
15    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
16    pub type AuthenticationExtensionsPrfOutputs;
17    #[cfg(web_sys_unstable_apis)]
18    #[doc = "Get the `enabled` field of this object."]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfOutputs`*"]
21    #[doc = ""]
22    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
23    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
24    #[wasm_bindgen(method, getter = "enabled")]
25    pub fn get_enabled(this: &AuthenticationExtensionsPrfOutputs) -> Option<bool>;
26    #[cfg(web_sys_unstable_apis)]
27    #[doc = "Change the `enabled` field of this object."]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfOutputs`*"]
30    #[doc = ""]
31    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
32    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
33    #[wasm_bindgen(method, setter = "enabled")]
34    pub fn set_enabled(this: &AuthenticationExtensionsPrfOutputs, val: bool);
35    #[cfg(web_sys_unstable_apis)]
36    #[cfg(feature = "AuthenticationExtensionsPrfValues")]
37    #[doc = "Get the `results` field of this object."]
38    #[doc = ""]
39    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfOutputs`, `AuthenticationExtensionsPrfValues`*"]
40    #[doc = ""]
41    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
42    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
43    #[wasm_bindgen(method, getter = "results")]
44    pub fn get_results(
45        this: &AuthenticationExtensionsPrfOutputs,
46    ) -> Option<AuthenticationExtensionsPrfValues>;
47    #[cfg(web_sys_unstable_apis)]
48    #[cfg(feature = "AuthenticationExtensionsPrfValues")]
49    #[doc = "Change the `results` field of this object."]
50    #[doc = ""]
51    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfOutputs`, `AuthenticationExtensionsPrfValues`*"]
52    #[doc = ""]
53    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
54    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
55    #[wasm_bindgen(method, setter = "results")]
56    pub fn set_results(
57        this: &AuthenticationExtensionsPrfOutputs,
58        val: &AuthenticationExtensionsPrfValues,
59    );
60}
61#[cfg(web_sys_unstable_apis)]
62impl AuthenticationExtensionsPrfOutputs {
63    #[doc = "Construct a new `AuthenticationExtensionsPrfOutputs`."]
64    #[doc = ""]
65    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfOutputs`*"]
66    #[doc = ""]
67    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
68    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
69    pub fn new() -> Self {
70        #[allow(unused_mut)]
71        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
72        ret
73    }
74    #[cfg(web_sys_unstable_apis)]
75    #[deprecated = "Use `set_enabled()` instead."]
76    pub fn enabled(&mut self, val: bool) -> &mut Self {
77        self.set_enabled(val);
78        self
79    }
80    #[cfg(web_sys_unstable_apis)]
81    #[cfg(feature = "AuthenticationExtensionsPrfValues")]
82    #[deprecated = "Use `set_results()` instead."]
83    pub fn results(&mut self, val: &AuthenticationExtensionsPrfValues) -> &mut Self {
84        self.set_results(val);
85        self
86    }
87}
88#[cfg(web_sys_unstable_apis)]
89impl Default for AuthenticationExtensionsPrfOutputs {
90    fn default() -> Self {
91        Self::new()
92    }
93}