#![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 Symbol {
#[serde(rename = "symbol")]
symbol: String, #[serde(rename = "name")]
name: String, #[serde(rename = "type")]
_type: String, #[serde(rename = "url")]
url: String, #[serde(rename = "updated")]
updated: String,
#[serde(rename = "isOTC")]
is_otc: bool }
impl Symbol {
pub fn new(symbol: String, name: String, _type: String, url: String, updated: String, is_otc: bool, ) -> Symbol {
Symbol {
symbol: symbol,
name: name,
_type: _type,
url: url,
updated: updated,
is_otc: is_otc
}
}
pub fn set_symbol(&mut self, symbol: String) {
self.symbol = symbol;
}
pub fn with_symbol(mut self, symbol: String) -> Symbol {
self.symbol = symbol;
self
}
pub fn symbol(&self) -> &String {
&self.symbol
}
pub fn set_name(&mut self, name: String) {
self.name = name;
}
pub fn with_name(mut self, name: String) -> Symbol {
self.name = name;
self
}
pub fn name(&self) -> &String {
&self.name
}
pub fn set__type(&mut self, _type: String) {
self._type = _type;
}
pub fn with__type(mut self, _type: String) -> Symbol {
self._type = _type;
self
}
pub fn _type(&self) -> &String {
&self._type
}
pub fn set_url(&mut self, url: String) {
self.url = url;
}
pub fn with_url(mut self, url: String) -> Symbol {
self.url = url;
self
}
pub fn url(&self) -> &String {
&self.url
}
pub fn set_updated(&mut self, updated: String) {
self.updated = updated;
}
pub fn with_updated(mut self, updated: String) -> Symbol {
self.updated = updated;
self
}
pub fn updated(&self) -> &String {
&self.updated
}
pub fn set_is_otc(&mut self, is_otc: bool) {
self.is_otc = is_otc;
}
pub fn with_is_otc(mut self, is_otc: bool) -> Symbol {
self.is_otc = is_otc;
self
}
pub fn is_otc(&self) -> &bool {
&self.is_otc
}
}