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
/* 
 * Client Portal Web API
 *
 * Production version of the Client Portal Web API
 *
 * OpenAPI spec version: 1.0.0
 * 
 * Generated by: https://github.com/swagger-api/swagger-codegen.git
 */


#[allow(unused_imports)]
use serde_json::Value;

#[derive(Debug, Serialize, Deserialize)]
pub struct Body3 {
  /// answer to question, true means yes, false means no
  #[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;
  }

}