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
/* 
 * 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 InlineResponse200 {
  #[serde(rename = "E")]
  E: Option<Vec<::models::InlineResponse200E>>,
  /// Email option is enabled or not 0-off, 1-on.
  #[serde(rename = "M")]
  M: Option<i32>
}

impl InlineResponse200 {
  pub fn new() -> InlineResponse200 {
    InlineResponse200 {
      E: None,
      M: None
    }
  }

  pub fn set_E(&mut self, E: Vec<::models::InlineResponse200E>) {
    self.E = Some(E);
  }

  pub fn with_E(mut self, E: Vec<::models::InlineResponse200E>) -> InlineResponse200 {
    self.E = Some(E);
    self
  }

  pub fn E(&self) -> Option<&Vec<::models::InlineResponse200E>> {
    self.E.as_ref()
  }

  pub fn reset_E(&mut self) {
    self.E = None;
  }

  pub fn set_M(&mut self, M: i32) {
    self.M = Some(M);
  }

  pub fn with_M(mut self, M: i32) -> InlineResponse200 {
    self.M = Some(M);
    self
  }

  pub fn M(&self) -> Option<&i32> {
    self.M.as_ref()
  }

  pub fn reset_M(&mut self) {
    self.M = None;
  }

}