ib/models/
inline_response_200_30.rs1#[allow(unused_imports)]
13use serde_json::Value;
14
15#[derive(Debug, Serialize, Deserialize)]
16pub struct InlineResponse20030 {
17 #[serde(rename = "call")]
18 call: Option<Vec<String>>,
19 #[serde(rename = "put")]
20 put: Option<Vec<String>>
21}
22
23impl InlineResponse20030 {
24 pub fn new() -> InlineResponse20030 {
25 InlineResponse20030 {
26 call: None,
27 put: None
28 }
29 }
30
31 pub fn set_call(&mut self, call: Vec<String>) {
32 self.call = Some(call);
33 }
34
35 pub fn with_call(mut self, call: Vec<String>) -> InlineResponse20030 {
36 self.call = Some(call);
37 self
38 }
39
40 pub fn call(&self) -> Option<&Vec<String>> {
41 self.call.as_ref()
42 }
43
44 pub fn reset_call(&mut self) {
45 self.call = None;
46 }
47
48 pub fn set_put(&mut self, put: Vec<String>) {
49 self.put = Some(put);
50 }
51
52 pub fn with_put(mut self, put: Vec<String>) -> InlineResponse20030 {
53 self.put = Some(put);
54 self
55 }
56
57 pub fn put(&self) -> Option<&Vec<String>> {
58 self.put.as_ref()
59 }
60
61 pub fn reset_put(&mut self) {
62 self.put = None;
63 }
64
65}
66
67
68