#[allow(unused_imports)]
use serde_json::Value;
#[derive(Debug, Serialize, Deserialize)]
pub struct SummaryTotal {
#[serde(rename = "chg")]
chg: Option<String>,
#[serde(rename = "endVal")]
end_val: Option<String>,
#[serde(rename = "incompleteData")]
incomplete_data: Option<bool>,
#[serde(rename = "rtn")]
rtn: Option<String>,
#[serde(rename = "startVal")]
start_val: Option<String>
}
impl SummaryTotal {
pub fn new() -> SummaryTotal {
SummaryTotal {
chg: None,
end_val: None,
incomplete_data: None,
rtn: None,
start_val: None
}
}
pub fn set_chg(&mut self, chg: String) {
self.chg = Some(chg);
}
pub fn with_chg(mut self, chg: String) -> SummaryTotal {
self.chg = Some(chg);
self
}
pub fn chg(&self) -> Option<&String> {
self.chg.as_ref()
}
pub fn reset_chg(&mut self) {
self.chg = None;
}
pub fn set_end_val(&mut self, end_val: String) {
self.end_val = Some(end_val);
}
pub fn with_end_val(mut self, end_val: String) -> SummaryTotal {
self.end_val = Some(end_val);
self
}
pub fn end_val(&self) -> Option<&String> {
self.end_val.as_ref()
}
pub fn reset_end_val(&mut self) {
self.end_val = None;
}
pub fn set_incomplete_data(&mut self, incomplete_data: bool) {
self.incomplete_data = Some(incomplete_data);
}
pub fn with_incomplete_data(mut self, incomplete_data: bool) -> SummaryTotal {
self.incomplete_data = Some(incomplete_data);
self
}
pub fn incomplete_data(&self) -> Option<&bool> {
self.incomplete_data.as_ref()
}
pub fn reset_incomplete_data(&mut self) {
self.incomplete_data = None;
}
pub fn set_rtn(&mut self, rtn: String) {
self.rtn = Some(rtn);
}
pub fn with_rtn(mut self, rtn: String) -> SummaryTotal {
self.rtn = Some(rtn);
self
}
pub fn rtn(&self) -> Option<&String> {
self.rtn.as_ref()
}
pub fn reset_rtn(&mut self) {
self.rtn = None;
}
pub fn set_start_val(&mut self, start_val: String) {
self.start_val = Some(start_val);
}
pub fn with_start_val(mut self, start_val: String) -> SummaryTotal {
self.start_val = Some(start_val);
self
}
pub fn start_val(&self) -> Option<&String> {
self.start_val.as_ref()
}
pub fn reset_start_val(&mut self) {
self.start_val = None;
}
}