#![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 StocksSnapshotBookItem {
#[serde(rename = "p")]
p: f32, #[serde(rename = "x")]
x: Value }
impl StocksSnapshotBookItem {
pub fn new(p: f32, x: Value, ) -> StocksSnapshotBookItem {
StocksSnapshotBookItem {
p: p,
x: x
}
}
pub fn set_p(&mut self, p: f32) {
self.p = p;
}
pub fn with_p(mut self, p: f32) -> StocksSnapshotBookItem {
self.p = p;
self
}
pub fn p(&self) -> &f32 {
&self.p
}
pub fn set_x(&mut self, x: Value) {
self.x = x;
}
pub fn with_x(mut self, x: Value) -> StocksSnapshotBookItem {
self.x = x;
self
}
pub fn x(&self) -> &Value {
&self.x
}
}