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