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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
/* 
 * 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
 */

/// NotificationsInner : notification

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

#[derive(Debug, Serialize, Deserialize)]
pub struct NotificationsInner {
  /// notification date
  #[serde(rename = "D")]
  D: Option<String>,
  /// unique way to reference this notification
  #[serde(rename = "ID")]
  ID: Option<String>,
  /// FYI code, we can use it to find whether the disclaimer is accepted or not in settings
  #[serde(rename = "FC")]
  FC: Option<String>,
  /// content of notification
  #[serde(rename = "MD")]
  MD: Option<String>,
  /// title of notification
  #[serde(rename = "MS")]
  MS: Option<String>,
  /// 0-unread, 1-read
  #[serde(rename = "R")]
  R: Option<String>
}

impl NotificationsInner {
  /// notification
  pub fn new() -> NotificationsInner {
    NotificationsInner {
      D: None,
      ID: None,
      FC: None,
      MD: None,
      MS: None,
      R: None
    }
  }

  pub fn set_D(&mut self, D: String) {
    self.D = Some(D);
  }

  pub fn with_D(mut self, D: String) -> NotificationsInner {
    self.D = Some(D);
    self
  }

  pub fn D(&self) -> Option<&String> {
    self.D.as_ref()
  }

  pub fn reset_D(&mut self) {
    self.D = None;
  }

  pub fn set_ID(&mut self, ID: String) {
    self.ID = Some(ID);
  }

  pub fn with_ID(mut self, ID: String) -> NotificationsInner {
    self.ID = Some(ID);
    self
  }

  pub fn ID(&self) -> Option<&String> {
    self.ID.as_ref()
  }

  pub fn reset_ID(&mut self) {
    self.ID = None;
  }

  pub fn set_FC(&mut self, FC: String) {
    self.FC = Some(FC);
  }

  pub fn with_FC(mut self, FC: String) -> NotificationsInner {
    self.FC = Some(FC);
    self
  }

  pub fn FC(&self) -> Option<&String> {
    self.FC.as_ref()
  }

  pub fn reset_FC(&mut self) {
    self.FC = None;
  }

  pub fn set_MD(&mut self, MD: String) {
    self.MD = Some(MD);
  }

  pub fn with_MD(mut self, MD: String) -> NotificationsInner {
    self.MD = Some(MD);
    self
  }

  pub fn MD(&self) -> Option<&String> {
    self.MD.as_ref()
  }

  pub fn reset_MD(&mut self) {
    self.MD = None;
  }

  pub fn set_MS(&mut self, MS: String) {
    self.MS = Some(MS);
  }

  pub fn with_MS(mut self, MS: String) -> NotificationsInner {
    self.MS = Some(MS);
    self
  }

  pub fn MS(&self) -> Option<&String> {
    self.MS.as_ref()
  }

  pub fn reset_MS(&mut self) {
    self.MS = None;
  }

  pub fn set_R(&mut self, R: String) {
    self.R = Some(R);
  }

  pub fn with_R(mut self, R: String) -> NotificationsInner {
    self.R = Some(R);
    self
  }

  pub fn R(&self) -> Option<&String> {
    self.R.as_ref()
  }

  pub fn reset_R(&mut self) {
    self.R = None;
  }

}