web_sys/features/
gen_AuthenticationExtensionsPrfValues.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 = AuthenticationExtensionsPRFValues)]
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 #[doc = "The `AuthenticationExtensionsPrfValues` dictionary."]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfValues`*"]
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 AuthenticationExtensionsPrfValues;
17 #[cfg(web_sys_unstable_apis)]
18 #[doc = "Get the `first` field of this object."]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfValues`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
24 #[wasm_bindgen(method, getter = "first")]
25 pub fn get_first(this: &AuthenticationExtensionsPrfValues) -> ::js_sys::Object;
26 #[cfg(web_sys_unstable_apis)]
27 #[doc = "Change the `first` field of this object."]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfValues`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
33 #[wasm_bindgen(method, setter = "first")]
34 pub fn set_first(this: &AuthenticationExtensionsPrfValues, val: &::js_sys::Object);
35 #[cfg(web_sys_unstable_apis)]
36 #[doc = "Change the `first` field of this object."]
37 #[doc = ""]
38 #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfValues`*"]
39 #[doc = ""]
40 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
41 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
42 #[wasm_bindgen(method, setter = "first")]
43 pub fn set_first_u8_slice(this: &AuthenticationExtensionsPrfValues, val: &mut [u8]);
44 #[cfg(web_sys_unstable_apis)]
45 #[doc = "Change the `first` field of this object."]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfValues`*"]
48 #[doc = ""]
49 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
50 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
51 #[wasm_bindgen(method, setter = "first")]
52 pub fn set_first_u8_array(this: &AuthenticationExtensionsPrfValues, val: &::js_sys::Uint8Array);
53 #[cfg(web_sys_unstable_apis)]
54 #[doc = "Get the `second` field of this object."]
55 #[doc = ""]
56 #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfValues`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
60 #[wasm_bindgen(method, getter = "second")]
61 pub fn get_second(this: &AuthenticationExtensionsPrfValues) -> Option<::js_sys::Object>;
62 #[cfg(web_sys_unstable_apis)]
63 #[doc = "Change the `second` field of this object."]
64 #[doc = ""]
65 #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfValues`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
69 #[wasm_bindgen(method, setter = "second")]
70 pub fn set_second(this: &AuthenticationExtensionsPrfValues, val: &::js_sys::Object);
71 #[cfg(web_sys_unstable_apis)]
72 #[doc = "Change the `second` field of this object."]
73 #[doc = ""]
74 #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfValues`*"]
75 #[doc = ""]
76 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
77 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
78 #[wasm_bindgen(method, setter = "second")]
79 pub fn set_second_u8_slice(this: &AuthenticationExtensionsPrfValues, val: &mut [u8]);
80 #[cfg(web_sys_unstable_apis)]
81 #[doc = "Change the `second` field of this object."]
82 #[doc = ""]
83 #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfValues`*"]
84 #[doc = ""]
85 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
86 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
87 #[wasm_bindgen(method, setter = "second")]
88 pub fn set_second_u8_array(
89 this: &AuthenticationExtensionsPrfValues,
90 val: &::js_sys::Uint8Array,
91 );
92}
93#[cfg(web_sys_unstable_apis)]
94impl AuthenticationExtensionsPrfValues {
95 #[doc = "Construct a new `AuthenticationExtensionsPrfValues`."]
96 #[doc = ""]
97 #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfValues`*"]
98 #[doc = ""]
99 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
100 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
101 pub fn new(first: &::js_sys::Object) -> Self {
102 #[allow(unused_mut)]
103 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
104 ret.set_first(first);
105 ret
106 }
107 #[doc = "Construct a new `AuthenticationExtensionsPrfValues`."]
108 #[doc = ""]
109 #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfValues`*"]
110 #[doc = ""]
111 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
112 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
113 pub fn new_with_u8_slice(first: &mut [u8]) -> Self {
114 #[allow(unused_mut)]
115 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
116 ret.set_first_u8_slice(first);
117 ret
118 }
119 #[doc = "Construct a new `AuthenticationExtensionsPrfValues`."]
120 #[doc = ""]
121 #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfValues`*"]
122 #[doc = ""]
123 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
124 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
125 pub fn new_with_u8_array(first: &::js_sys::Uint8Array) -> Self {
126 #[allow(unused_mut)]
127 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
128 ret.set_first_u8_array(first);
129 ret
130 }
131 #[cfg(web_sys_unstable_apis)]
132 #[deprecated = "Use `set_first()` instead."]
133 pub fn first(&mut self, val: &::js_sys::Object) -> &mut Self {
134 self.set_first(val);
135 self
136 }
137 #[cfg(web_sys_unstable_apis)]
138 #[deprecated = "Use `set_second()` instead."]
139 pub fn second(&mut self, val: &::js_sys::Object) -> &mut Self {
140 self.set_second(val);
141 self
142 }
143}