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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
/* 
 * 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 InlineResponse2008 {
  #[serde(rename = "conid")]
  conid: Option<i32>,
  #[serde(rename = "companyHeader")]
  company_header: Option<String>,
  #[serde(rename = "companyName")]
  company_name: Option<String>,
  #[serde(rename = "symbol")]
  symbol: Option<String>,
  #[serde(rename = "description")]
  description: Option<String>,
  #[serde(rename = "opt")]
  opt: Option<String>,
  #[serde(rename = "war")]
  war: Option<String>,
  #[serde(rename = "sections")]
  sections: Option<Vec<Value>>
}

impl InlineResponse2008 {
  pub fn new() -> InlineResponse2008 {
    InlineResponse2008 {
      conid: None,
      company_header: None,
      company_name: None,
      symbol: None,
      description: None,
      opt: None,
      war: None,
      sections: None
    }
  }

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

  pub fn with_conid(mut self, conid: i32) -> InlineResponse2008 {
    self.conid = Some(conid);
    self
  }

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

  pub fn reset_conid(&mut self) {
    self.conid = None;
  }

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

  pub fn with_company_header(mut self, company_header: String) -> InlineResponse2008 {
    self.company_header = Some(company_header);
    self
  }

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

  pub fn reset_company_header(&mut self) {
    self.company_header = None;
  }

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

  pub fn with_company_name(mut self, company_name: String) -> InlineResponse2008 {
    self.company_name = Some(company_name);
    self
  }

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

  pub fn reset_company_name(&mut self) {
    self.company_name = None;
  }

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

  pub fn with_symbol(mut self, symbol: String) -> InlineResponse2008 {
    self.symbol = Some(symbol);
    self
  }

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

  pub fn reset_symbol(&mut self) {
    self.symbol = None;
  }

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

  pub fn with_description(mut self, description: String) -> InlineResponse2008 {
    self.description = Some(description);
    self
  }

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

  pub fn reset_description(&mut self) {
    self.description = None;
  }

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

  pub fn with_opt(mut self, opt: String) -> InlineResponse2008 {
    self.opt = Some(opt);
    self
  }

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

  pub fn reset_opt(&mut self) {
    self.opt = None;
  }

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

  pub fn with_war(mut self, war: String) -> InlineResponse2008 {
    self.war = Some(war);
    self
  }

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

  pub fn reset_war(&mut self) {
    self.war = None;
  }

  pub fn set_sections(&mut self, sections: Vec<Value>) {
    self.sections = Some(sections);
  }

  pub fn with_sections(mut self, sections: Vec<Value>) -> InlineResponse2008 {
    self.sections = Some(sections);
    self
  }

  pub fn sections(&self) -> Option<&Vec<Value>> {
    self.sections.as_ref()
  }

  pub fn reset_sections(&mut self) {
    self.sections = None;
  }

}