#![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 CryptoTickJson {
#[serde(rename = "p")]
p: f32, #[serde(rename = "s")]
s: f32, #[serde(rename = "x")]
x: i64, #[serde(rename = "c")]
c: Vec<i64>, #[serde(rename = "t")]
t: i64 }
impl CryptoTickJson {
pub fn new(p: f32, s: f32, x: i64, c: Vec<i64>, t: i64, ) -> CryptoTickJson {
CryptoTickJson {
p: p,
s: s,
x: x,
c: c,
t: t
}
}
pub fn set_p(&mut self, p: f32) {
self.p = p;
}
pub fn with_p(mut self, p: f32) -> CryptoTickJson {
self.p = p;
self
}
pub fn p(&self) -> &f32 {
&self.p
}
pub fn set_s(&mut self, s: f32) {
self.s = s;
}
pub fn with_s(mut self, s: f32) -> CryptoTickJson {
self.s = s;
self
}
pub fn s(&self) -> &f32 {
&self.s
}
pub fn set_x(&mut self, x: i64) {
self.x = x;
}
pub fn with_x(mut self, x: i64) -> CryptoTickJson {
self.x = x;
self
}
pub fn x(&self) -> &i64 {
&self.x
}
pub fn set_c(&mut self, c: Vec<i64>) {
self.c = c;
}
pub fn with_c(mut self, c: Vec<i64>) -> CryptoTickJson {
self.c = c;
self
}
pub fn c(&self) -> &Vec<i64> {
&self.c
}
pub fn set_t(&mut self, t: i64) {
self.t = t;
}
pub fn with_t(mut self, t: i64) -> CryptoTickJson {
self.t = t;
self
}
pub fn t(&self) -> &i64 {
&self.t
}
}