Skip to main content

web_sys/features/
gen_AuthenticationExtensionsLargeBlobInputs.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "::js_sys::Object",
9        js_name = "AuthenticationExtensionsLargeBlobInputs"
10    )]
11    #[derive(Debug, Clone, PartialEq, Eq)]
12    #[doc = "The `AuthenticationExtensionsLargeBlobInputs` dictionary."]
13    #[doc = ""]
14    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"]
15    pub type AuthenticationExtensionsLargeBlobInputs;
16    #[doc = "Get the `read` field of this object."]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"]
19    #[wasm_bindgen(method, getter = "read")]
20    pub fn get_read(this: &AuthenticationExtensionsLargeBlobInputs) -> Option<bool>;
21    #[doc = "Change the `read` field of this object."]
22    #[doc = ""]
23    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"]
24    #[wasm_bindgen(method, setter = "read")]
25    pub fn set_read(this: &AuthenticationExtensionsLargeBlobInputs, val: bool);
26    #[doc = "Get the `support` field of this object."]
27    #[doc = ""]
28    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"]
29    #[wasm_bindgen(method, getter = "support")]
30    pub fn get_support(
31        this: &AuthenticationExtensionsLargeBlobInputs,
32    ) -> Option<::alloc::string::String>;
33    #[doc = "Change the `support` field of this object."]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"]
36    #[wasm_bindgen(method, setter = "support")]
37    pub fn set_support(this: &AuthenticationExtensionsLargeBlobInputs, val: &str);
38    #[doc = "Get the `write` field of this object."]
39    #[doc = ""]
40    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"]
41    #[wasm_bindgen(method, getter = "write")]
42    pub fn get_write(this: &AuthenticationExtensionsLargeBlobInputs) -> Option<::js_sys::Object>;
43    #[doc = "Change the `write` field of this object."]
44    #[doc = ""]
45    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"]
46    #[wasm_bindgen(method, setter = "write")]
47    pub fn set_write(this: &AuthenticationExtensionsLargeBlobInputs, val: &::js_sys::Object);
48    #[doc = "Change the `write` field of this object."]
49    #[doc = ""]
50    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"]
51    #[wasm_bindgen(method, setter = "write")]
52    pub fn set_write_buffer_source(
53        this: &AuthenticationExtensionsLargeBlobInputs,
54        val: &::js_sys::Object,
55    );
56    #[doc = "Change the `write` field of this object."]
57    #[doc = ""]
58    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"]
59    #[wasm_bindgen(method, setter = "write")]
60    pub fn set_write_u8_slice(this: &AuthenticationExtensionsLargeBlobInputs, val: &mut [u8]);
61    #[doc = "Change the `write` field of this object."]
62    #[doc = ""]
63    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"]
64    #[wasm_bindgen(method, setter = "write")]
65    pub fn set_write_u8_array(
66        this: &AuthenticationExtensionsLargeBlobInputs,
67        val: &::js_sys::Uint8Array,
68    );
69}
70impl AuthenticationExtensionsLargeBlobInputs {
71    #[doc = "Construct a new `AuthenticationExtensionsLargeBlobInputs`."]
72    #[doc = ""]
73    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"]
74    pub fn new() -> Self {
75        #[allow(unused_mut)]
76        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
77        ret
78    }
79    #[deprecated = "Use `set_read()` instead."]
80    pub fn read(&mut self, val: bool) -> &mut Self {
81        self.set_read(val);
82        self
83    }
84    #[deprecated = "Use `set_support()` instead."]
85    pub fn support(&mut self, val: &str) -> &mut Self {
86        self.set_support(val);
87        self
88    }
89    #[deprecated = "Use `set_write()` instead."]
90    pub fn write(&mut self, val: &::js_sys::Object) -> &mut Self {
91        self.set_write(val);
92        self
93    }
94}
95impl Default for AuthenticationExtensionsLargeBlobInputs {
96    fn default() -> Self {
97        Self::new()
98    }
99}