web_sys/features/
gen_BasicCardRequest.rs1#![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 = BasicCardRequest)]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `BasicCardRequest` dictionary."]
10 #[doc = ""]
11 #[doc = "*This API requires the following crate features to be activated: `BasicCardRequest`*"]
12 pub type BasicCardRequest;
13 #[doc = "Get the `supportedNetworks` field of this object."]
14 #[doc = ""]
15 #[doc = "*This API requires the following crate features to be activated: `BasicCardRequest`*"]
16 #[wasm_bindgen(method, getter = "supportedNetworks")]
17 pub fn get_supported_networks(this: &BasicCardRequest) -> Option<::js_sys::Array>;
18 #[doc = "Change the `supportedNetworks` field of this object."]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `BasicCardRequest`*"]
21 #[wasm_bindgen(method, setter = "supportedNetworks")]
22 pub fn set_supported_networks(this: &BasicCardRequest, val: &::wasm_bindgen::JsValue);
23 #[doc = "Get the `supportedTypes` field of this object."]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `BasicCardRequest`*"]
26 #[wasm_bindgen(method, getter = "supportedTypes")]
27 pub fn get_supported_types(this: &BasicCardRequest) -> Option<::js_sys::Array>;
28 #[doc = "Change the `supportedTypes` field of this object."]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `BasicCardRequest`*"]
31 #[wasm_bindgen(method, setter = "supportedTypes")]
32 pub fn set_supported_types(this: &BasicCardRequest, val: &::wasm_bindgen::JsValue);
33}
34impl BasicCardRequest {
35 #[doc = "Construct a new `BasicCardRequest`."]
36 #[doc = ""]
37 #[doc = "*This API requires the following crate features to be activated: `BasicCardRequest`*"]
38 pub fn new() -> Self {
39 #[allow(unused_mut)]
40 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
41 ret
42 }
43 #[deprecated = "Use `set_supported_networks()` instead."]
44 pub fn supported_networks(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
45 self.set_supported_networks(val);
46 self
47 }
48 #[deprecated = "Use `set_supported_types()` instead."]
49 pub fn supported_types(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
50 self.set_supported_types(val);
51 self
52 }
53}
54impl Default for BasicCardRequest {
55 fn default() -> Self {
56 Self::new()
57 }
58}