ib/models/
inline_response_200_17.rs1#[allow(unused_imports)]
13use serde_json::Value;
14
15#[derive(Debug, Serialize, Deserialize)]
16pub struct InlineResponse20017 {
17 #[serde(rename = "order_id")]
18 order_id: Option<i32>,
19 #[serde(rename = "order_status")]
20 order_status: Option<String>,
21 #[serde(rename = "request_id")]
22 request_id: Option<i32>,
23 #[serde(rename = "success")]
24 success: Option<bool>,
25 #[serde(rename = "text")]
26 text: Option<String>,
27 #[serde(rename = "warning_message")]
28 warning_message: Option<String>
29}
30
31impl InlineResponse20017 {
32 pub fn new() -> InlineResponse20017 {
33 InlineResponse20017 {
34 order_id: None,
35 order_status: None,
36 request_id: None,
37 success: None,
38 text: None,
39 warning_message: None
40 }
41 }
42
43 pub fn set_order_id(&mut self, order_id: i32) {
44 self.order_id = Some(order_id);
45 }
46
47 pub fn with_order_id(mut self, order_id: i32) -> InlineResponse20017 {
48 self.order_id = Some(order_id);
49 self
50 }
51
52 pub fn order_id(&self) -> Option<&i32> {
53 self.order_id.as_ref()
54 }
55
56 pub fn reset_order_id(&mut self) {
57 self.order_id = None;
58 }
59
60 pub fn set_order_status(&mut self, order_status: String) {
61 self.order_status = Some(order_status);
62 }
63
64 pub fn with_order_status(mut self, order_status: String) -> InlineResponse20017 {
65 self.order_status = Some(order_status);
66 self
67 }
68
69 pub fn order_status(&self) -> Option<&String> {
70 self.order_status.as_ref()
71 }
72
73 pub fn reset_order_status(&mut self) {
74 self.order_status = None;
75 }
76
77 pub fn set_request_id(&mut self, request_id: i32) {
78 self.request_id = Some(request_id);
79 }
80
81 pub fn with_request_id(mut self, request_id: i32) -> InlineResponse20017 {
82 self.request_id = Some(request_id);
83 self
84 }
85
86 pub fn request_id(&self) -> Option<&i32> {
87 self.request_id.as_ref()
88 }
89
90 pub fn reset_request_id(&mut self) {
91 self.request_id = None;
92 }
93
94 pub fn set_success(&mut self, success: bool) {
95 self.success = Some(success);
96 }
97
98 pub fn with_success(mut self, success: bool) -> InlineResponse20017 {
99 self.success = Some(success);
100 self
101 }
102
103 pub fn success(&self) -> Option<&bool> {
104 self.success.as_ref()
105 }
106
107 pub fn reset_success(&mut self) {
108 self.success = None;
109 }
110
111 pub fn set_text(&mut self, text: String) {
112 self.text = Some(text);
113 }
114
115 pub fn with_text(mut self, text: String) -> InlineResponse20017 {
116 self.text = Some(text);
117 self
118 }
119
120 pub fn text(&self) -> Option<&String> {
121 self.text.as_ref()
122 }
123
124 pub fn reset_text(&mut self) {
125 self.text = None;
126 }
127
128 pub fn set_warning_message(&mut self, warning_message: String) {
129 self.warning_message = Some(warning_message);
130 }
131
132 pub fn with_warning_message(mut self, warning_message: String) -> InlineResponse20017 {
133 self.warning_message = Some(warning_message);
134 self
135 }
136
137 pub fn warning_message(&self) -> Option<&String> {
138 self.warning_message.as_ref()
139 }
140
141 pub fn reset_warning_message(&mut self) {
142 self.warning_message = None;
143 }
144
145}
146
147
148