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