#[allow(unused_imports)]
use serde_json::Value;
#[derive(Debug, Serialize, Deserialize)]
pub struct InlineResponse20020 {
#[serde(rename = "account")]
account: Option<String>,
#[serde(rename = "conid")]
conid: Option<i32>,
#[serde(rename = "msg")]
msg: Option<String>,
#[serde(rename = "order_id")]
order_id: Option<String>
}
impl InlineResponse20020 {
pub fn new() -> InlineResponse20020 {
InlineResponse20020 {
account: None,
conid: None,
msg: None,
order_id: None
}
}
pub fn set_account(&mut self, account: String) {
self.account = Some(account);
}
pub fn with_account(mut self, account: String) -> InlineResponse20020 {
self.account = Some(account);
self
}
pub fn account(&self) -> Option<&String> {
self.account.as_ref()
}
pub fn reset_account(&mut self) {
self.account = None;
}
pub fn set_conid(&mut self, conid: i32) {
self.conid = Some(conid);
}
pub fn with_conid(mut self, conid: i32) -> InlineResponse20020 {
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_msg(&mut self, msg: String) {
self.msg = Some(msg);
}
pub fn with_msg(mut self, msg: String) -> InlineResponse20020 {
self.msg = Some(msg);
self
}
pub fn msg(&self) -> Option<&String> {
self.msg.as_ref()
}
pub fn reset_msg(&mut self) {
self.msg = None;
}
pub fn set_order_id(&mut self, order_id: String) {
self.order_id = Some(order_id);
}
pub fn with_order_id(mut self, order_id: String) -> InlineResponse20020 {
self.order_id = Some(order_id);
self
}
pub fn order_id(&self) -> Option<&String> {
self.order_id.as_ref()
}
pub fn reset_order_id(&mut self) {
self.order_id = None;
}
}