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
#[allow(unused_imports)]
use serde_json::Value;
#[derive(Debug, Serialize, Deserialize)]
pub struct Body3 {
#[serde(rename = "confirmed")]
confirmed: Option<bool>
}
impl Body3 {
pub fn new() -> Body3 {
Body3 {
confirmed: None
}
}
pub fn set_confirmed(&mut self, confirmed: bool) {
self.confirmed = Some(confirmed);
}
pub fn with_confirmed(mut self, confirmed: bool) -> Body3 {
self.confirmed = Some(confirmed);
self
}
pub fn confirmed(&self) -> Option<&bool> {
self.confirmed.as_ref()
}
pub fn reset_confirmed(&mut self) {
self.confirmed = None;
}
}