#![allow(unused_imports)]
use serde_json::Value;
use bigdecimal::BigDecimal;
use chrono::{NaiveDateTime, DateTime, FixedOffset, Utc};
use crate::models::*;
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct TickerCodes {
#[serde(rename = "cik")]
cik: Option<String>, #[serde(rename = "figi")]
figi: Option<String>, #[serde(rename = "cfigi")]
cfigi: Option<String>, #[serde(rename = "scfigi")]
scfigi: Option<String>, #[serde(rename = "figiuid")]
figiuid: Option<String> }
impl TickerCodes {
pub fn new() -> TickerCodes {
TickerCodes {
cik: None,
figi: None,
cfigi: None,
scfigi: None,
figiuid: None
}
}
pub fn set_cik(&mut self, cik: String) {
self.cik = Some(cik);
}
pub fn with_cik(mut self, cik: String) -> TickerCodes {
self.cik = Some(cik);
self
}
pub fn cik(&self) -> Option<&String> {
self.cik.as_ref()
}
pub fn reset_cik(&mut self) {
self.cik = None;
}
pub fn set_figi(&mut self, figi: String) {
self.figi = Some(figi);
}
pub fn with_figi(mut self, figi: String) -> TickerCodes {
self.figi = Some(figi);
self
}
pub fn figi(&self) -> Option<&String> {
self.figi.as_ref()
}
pub fn reset_figi(&mut self) {
self.figi = None;
}
pub fn set_cfigi(&mut self, cfigi: String) {
self.cfigi = Some(cfigi);
}
pub fn with_cfigi(mut self, cfigi: String) -> TickerCodes {
self.cfigi = Some(cfigi);
self
}
pub fn cfigi(&self) -> Option<&String> {
self.cfigi.as_ref()
}
pub fn reset_cfigi(&mut self) {
self.cfigi = None;
}
pub fn set_scfigi(&mut self, scfigi: String) {
self.scfigi = Some(scfigi);
}
pub fn with_scfigi(mut self, scfigi: String) -> TickerCodes {
self.scfigi = Some(scfigi);
self
}
pub fn scfigi(&self) -> Option<&String> {
self.scfigi.as_ref()
}
pub fn reset_scfigi(&mut self) {
self.scfigi = None;
}
pub fn set_figiuid(&mut self, figiuid: String) {
self.figiuid = Some(figiuid);
}
pub fn with_figiuid(mut self, figiuid: String) -> TickerCodes {
self.figiuid = Some(figiuid);
self
}
pub fn figiuid(&self) -> Option<&String> {
self.figiuid.as_ref()
}
pub fn reset_figiuid(&mut self) {
self.figiuid = None;
}
}