Skip to main content

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