#![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 StocksSnapshotAgg {
#[serde(rename = "c")]
c: f32, #[serde(rename = "h")]
h: f32, #[serde(rename = "l")]
l: f32, #[serde(rename = "o")]
o: f32, #[serde(rename = "v")]
v: i64 }
impl StocksSnapshotAgg {
pub fn new(c: f32, h: f32, l: f32, o: f32, v: i64, ) -> StocksSnapshotAgg {
StocksSnapshotAgg {
c: c,
h: h,
l: l,
o: o,
v: v
}
}
pub fn set_c(&mut self, c: f32) {
self.c = c;
}
pub fn with_c(mut self, c: f32) -> StocksSnapshotAgg {
self.c = c;
self
}
pub fn c(&self) -> &f32 {
&self.c
}
pub fn set_h(&mut self, h: f32) {
self.h = h;
}
pub fn with_h(mut self, h: f32) -> StocksSnapshotAgg {
self.h = h;
self
}
pub fn h(&self) -> &f32 {
&self.h
}
pub fn set_l(&mut self, l: f32) {
self.l = l;
}
pub fn with_l(mut self, l: f32) -> StocksSnapshotAgg {
self.l = l;
self
}
pub fn l(&self) -> &f32 {
&self.l
}
pub fn set_o(&mut self, o: f32) {
self.o = o;
}
pub fn with_o(mut self, o: f32) -> StocksSnapshotAgg {
self.o = o;
self
}
pub fn o(&self) -> &f32 {
&self.o
}
pub fn set_v(&mut self, v: i64) {
self.v = v;
}
pub fn with_v(mut self, v: i64) -> StocksSnapshotAgg {
self.v = v;
self
}
pub fn v(&self) -> &i64 {
&self.v
}
}