Skip to main content

web_sys/features/
gen_AuthenticationExtensionsLargeBlobOutputs.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 = "AuthenticationExtensionsLargeBlobOutputs"
10    )]
11    #[derive(Debug, Clone, PartialEq, Eq)]
12    #[doc = "The `AuthenticationExtensionsLargeBlobOutputs` dictionary."]
13    #[doc = ""]
14    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobOutputs`*"]
15    pub type AuthenticationExtensionsLargeBlobOutputs;
16    #[doc = "Get the `blob` field of this object."]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobOutputs`*"]
19    #[wasm_bindgen(method, getter = "blob")]
20    pub fn get_blob(
21        this: &AuthenticationExtensionsLargeBlobOutputs,
22    ) -> Option<::js_sys::ArrayBuffer>;
23    #[doc = "Change the `blob` field of this object."]
24    #[doc = ""]
25    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobOutputs`*"]
26    #[wasm_bindgen(method, setter = "blob")]
27    pub fn set_blob(this: &AuthenticationExtensionsLargeBlobOutputs, val: &::js_sys::ArrayBuffer);
28    #[doc = "Get the `supported` field of this object."]
29    #[doc = ""]
30    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobOutputs`*"]
31    #[wasm_bindgen(method, getter = "supported")]
32    pub fn get_supported(this: &AuthenticationExtensionsLargeBlobOutputs) -> Option<bool>;
33    #[doc = "Change the `supported` field of this object."]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobOutputs`*"]
36    #[wasm_bindgen(method, setter = "supported")]
37    pub fn set_supported(this: &AuthenticationExtensionsLargeBlobOutputs, val: bool);
38    #[doc = "Get the `written` field of this object."]
39    #[doc = ""]
40    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobOutputs`*"]
41    #[wasm_bindgen(method, getter = "written")]
42    pub fn get_written(this: &AuthenticationExtensionsLargeBlobOutputs) -> Option<bool>;
43    #[doc = "Change the `written` field of this object."]
44    #[doc = ""]
45    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobOutputs`*"]
46    #[wasm_bindgen(method, setter = "written")]
47    pub fn set_written(this: &AuthenticationExtensionsLargeBlobOutputs, val: bool);
48}
49impl AuthenticationExtensionsLargeBlobOutputs {
50    #[doc = "Construct a new `AuthenticationExtensionsLargeBlobOutputs`."]
51    #[doc = ""]
52    #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobOutputs`*"]
53    pub fn new() -> Self {
54        #[allow(unused_mut)]
55        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
56        ret
57    }
58    #[deprecated = "Use `set_blob()` instead."]
59    pub fn blob(&mut self, val: &::js_sys::ArrayBuffer) -> &mut Self {
60        self.set_blob(val);
61        self
62    }
63    #[deprecated = "Use `set_supported()` instead."]
64    pub fn supported(&mut self, val: bool) -> &mut Self {
65        self.set_supported(val);
66        self
67    }
68    #[deprecated = "Use `set_written()` instead."]
69    pub fn written(&mut self, val: bool) -> &mut Self {
70        self.set_written(val);
71        self
72    }
73}
74impl Default for AuthenticationExtensionsLargeBlobOutputs {
75    fn default() -> Self {
76        Self::new()
77    }
78}