web_sys/features/
gen_AuthenticationExtensionsPrfInputs.rs1#![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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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 #[doc = "Get the `evalByCredential` field of this object."]
44 #[doc = ""]
45 #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfInputs`*"]
46 #[doc = ""]
47 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
48 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
49 #[wasm_bindgen(method, getter = "evalByCredential")]
50 pub fn get_eval_by_credential(
51 this: &AuthenticationExtensionsPrfInputs,
52 ) -> Option<::js_sys::Object>;
53 #[cfg(web_sys_unstable_apis)]
54 #[doc = "Change the `evalByCredential` field of this object."]
55 #[doc = ""]
56 #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfInputs`*"]
57 #[doc = ""]
58 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
59 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
60 #[wasm_bindgen(method, setter = "evalByCredential")]
61 pub fn set_eval_by_credential(this: &AuthenticationExtensionsPrfInputs, val: &::js_sys::Object);
62}
63#[cfg(web_sys_unstable_apis)]
64impl AuthenticationExtensionsPrfInputs {
65 #[doc = "Construct a new `AuthenticationExtensionsPrfInputs`."]
66 #[doc = ""]
67 #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfInputs`*"]
68 #[doc = ""]
69 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
70 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
71 pub fn new() -> Self {
72 #[allow(unused_mut)]
73 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
74 ret
75 }
76 #[cfg(web_sys_unstable_apis)]
77 #[cfg(feature = "AuthenticationExtensionsPrfValues")]
78 #[deprecated = "Use `set_eval()` instead."]
79 pub fn eval(&mut self, val: &AuthenticationExtensionsPrfValues) -> &mut Self {
80 self.set_eval(val);
81 self
82 }
83 #[cfg(web_sys_unstable_apis)]
84 #[deprecated = "Use `set_eval_by_credential()` instead."]
85 pub fn eval_by_credential(&mut self, val: &::js_sys::Object) -> &mut Self {
86 self.set_eval_by_credential(val);
87 self
88 }
89}
90#[cfg(web_sys_unstable_apis)]
91impl Default for AuthenticationExtensionsPrfInputs {
92 fn default() -> Self {
93 Self::new()
94 }
95}