ib/models/
inline_response_200_11.rs

1/* 
2 * Client Portal Web API
3 *
4 * Client Poral Web API
5 *
6 * OpenAPI spec version: 1.0.0
7 * 
8 * Generated by: https://github.com/swagger-api/swagger-codegen.git
9 */
10
11
12#[allow(unused_imports)]
13use serde_json::Value;
14
15#[derive(Debug, Serialize, Deserialize)]
16pub struct InlineResponse20011 {
17  #[serde(rename = "acctId")]
18  acct_id: Option<String>,
19  #[serde(rename = "set")]
20  set: Option<bool>
21}
22
23impl InlineResponse20011 {
24  pub fn new() -> InlineResponse20011 {
25    InlineResponse20011 {
26      acct_id: None,
27      set: None
28    }
29  }
30
31  pub fn set_acct_id(&mut self, acct_id: String) {
32    self.acct_id = Some(acct_id);
33  }
34
35  pub fn with_acct_id(mut self, acct_id: String) -> InlineResponse20011 {
36    self.acct_id = Some(acct_id);
37    self
38  }
39
40  pub fn acct_id(&self) -> Option<&String> {
41    self.acct_id.as_ref()
42  }
43
44  pub fn reset_acct_id(&mut self) {
45    self.acct_id = None;
46  }
47
48  pub fn set_set(&mut self, set: bool) {
49    self.set = Some(set);
50  }
51
52  pub fn with_set(mut self, set: bool) -> InlineResponse20011 {
53    self.set = Some(set);
54    self
55  }
56
57  pub fn set(&self) -> Option<&bool> {
58    self.set.as_ref()
59  }
60
61  pub fn reset_set(&mut self) {
62    self.set = None;
63  }
64
65}
66
67
68