web_sys/features/
gen_DecoderDoctorNotification.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 = DecoderDoctorNotification)]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `DecoderDoctorNotification` dictionary."]
10 #[doc = ""]
11 #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"]
12 pub type DecoderDoctorNotification;
13 #[doc = "Get the `decodeIssue` field of this object."]
14 #[doc = ""]
15 #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"]
16 #[wasm_bindgen(method, getter = "decodeIssue")]
17 pub fn get_decode_issue(this: &DecoderDoctorNotification) -> Option<::alloc::string::String>;
18 #[doc = "Change the `decodeIssue` field of this object."]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"]
21 #[wasm_bindgen(method, setter = "decodeIssue")]
22 pub fn set_decode_issue(this: &DecoderDoctorNotification, val: &str);
23 #[doc = "Get the `decoderDoctorReportId` field of this object."]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"]
26 #[wasm_bindgen(method, getter = "decoderDoctorReportId")]
27 pub fn get_decoder_doctor_report_id(
28 this: &DecoderDoctorNotification,
29 ) -> ::alloc::string::String;
30 #[doc = "Change the `decoderDoctorReportId` field of this object."]
31 #[doc = ""]
32 #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"]
33 #[wasm_bindgen(method, setter = "decoderDoctorReportId")]
34 pub fn set_decoder_doctor_report_id(this: &DecoderDoctorNotification, val: &str);
35 #[doc = "Get the `docURL` field of this object."]
36 #[doc = ""]
37 #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"]
38 #[wasm_bindgen(method, getter = "docURL")]
39 pub fn get_doc_url(this: &DecoderDoctorNotification) -> Option<::alloc::string::String>;
40 #[doc = "Change the `docURL` field of this object."]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"]
43 #[wasm_bindgen(method, setter = "docURL")]
44 pub fn set_doc_url(this: &DecoderDoctorNotification, val: &str);
45 #[doc = "Get the `formats` field of this object."]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"]
48 #[wasm_bindgen(method, getter = "formats")]
49 pub fn get_formats(this: &DecoderDoctorNotification) -> Option<::alloc::string::String>;
50 #[doc = "Change the `formats` field of this object."]
51 #[doc = ""]
52 #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"]
53 #[wasm_bindgen(method, setter = "formats")]
54 pub fn set_formats(this: &DecoderDoctorNotification, val: &str);
55 #[doc = "Get the `isSolved` field of this object."]
56 #[doc = ""]
57 #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"]
58 #[wasm_bindgen(method, getter = "isSolved")]
59 pub fn get_is_solved(this: &DecoderDoctorNotification) -> bool;
60 #[doc = "Change the `isSolved` field of this object."]
61 #[doc = ""]
62 #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"]
63 #[wasm_bindgen(method, setter = "isSolved")]
64 pub fn set_is_solved(this: &DecoderDoctorNotification, val: bool);
65 #[doc = "Get the `resourceURL` field of this object."]
66 #[doc = ""]
67 #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"]
68 #[wasm_bindgen(method, getter = "resourceURL")]
69 pub fn get_resource_url(this: &DecoderDoctorNotification) -> Option<::alloc::string::String>;
70 #[doc = "Change the `resourceURL` field of this object."]
71 #[doc = ""]
72 #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"]
73 #[wasm_bindgen(method, setter = "resourceURL")]
74 pub fn set_resource_url(this: &DecoderDoctorNotification, val: &str);
75 #[cfg(feature = "DecoderDoctorNotificationType")]
76 #[doc = "Get the `type` field of this object."]
77 #[doc = ""]
78 #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`, `DecoderDoctorNotificationType`*"]
79 #[wasm_bindgen(method, getter = "type")]
80 pub fn get_type(this: &DecoderDoctorNotification) -> DecoderDoctorNotificationType;
81 #[cfg(feature = "DecoderDoctorNotificationType")]
82 #[doc = "Change the `type` field of this object."]
83 #[doc = ""]
84 #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`, `DecoderDoctorNotificationType`*"]
85 #[wasm_bindgen(method, setter = "type")]
86 pub fn set_type(this: &DecoderDoctorNotification, val: DecoderDoctorNotificationType);
87}
88impl DecoderDoctorNotification {
89 #[cfg(feature = "DecoderDoctorNotificationType")]
90 #[doc = "Construct a new `DecoderDoctorNotification`."]
91 #[doc = ""]
92 #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`, `DecoderDoctorNotificationType`*"]
93 pub fn new(
94 decoder_doctor_report_id: &str,
95 is_solved: bool,
96 type_: DecoderDoctorNotificationType,
97 ) -> Self {
98 #[allow(unused_mut)]
99 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
100 ret.set_decoder_doctor_report_id(decoder_doctor_report_id);
101 ret.set_is_solved(is_solved);
102 ret.set_type(type_);
103 ret
104 }
105 #[deprecated = "Use `set_decode_issue()` instead."]
106 pub fn decode_issue(&mut self, val: &str) -> &mut Self {
107 self.set_decode_issue(val);
108 self
109 }
110 #[deprecated = "Use `set_decoder_doctor_report_id()` instead."]
111 pub fn decoder_doctor_report_id(&mut self, val: &str) -> &mut Self {
112 self.set_decoder_doctor_report_id(val);
113 self
114 }
115 #[deprecated = "Use `set_doc_url()` instead."]
116 pub fn doc_url(&mut self, val: &str) -> &mut Self {
117 self.set_doc_url(val);
118 self
119 }
120 #[deprecated = "Use `set_formats()` instead."]
121 pub fn formats(&mut self, val: &str) -> &mut Self {
122 self.set_formats(val);
123 self
124 }
125 #[deprecated = "Use `set_is_solved()` instead."]
126 pub fn is_solved(&mut self, val: bool) -> &mut Self {
127 self.set_is_solved(val);
128 self
129 }
130 #[deprecated = "Use `set_resource_url()` instead."]
131 pub fn resource_url(&mut self, val: &str) -> &mut Self {
132 self.set_resource_url(val);
133 self
134 }
135 #[cfg(feature = "DecoderDoctorNotificationType")]
136 #[deprecated = "Use `set_type()` instead."]
137 pub fn type_(&mut self, val: DecoderDoctorNotificationType) -> &mut Self {
138 self.set_type(val);
139 self
140 }
141}