Skip to main content

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