web_sys/features/
gen_DecoderDoctorNotification.rs

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