[−][src]Struct pt::models::HistTrade
Implementations
impl HistTrade
[src]
pub fn new(
condition1: i64,
condition2: i64,
condition3: i64,
condition4: i64,
exchange: String,
price: f32,
size: i64,
timestamp: String
) -> HistTrade
[src]
condition1: i64,
condition2: i64,
condition3: i64,
condition4: i64,
exchange: String,
price: f32,
size: i64,
timestamp: String
) -> HistTrade
pub fn set_condition1(&mut self, condition1: i64)
[src]
pub fn with_condition1(self, condition1: i64) -> HistTrade
[src]
pub fn condition1(&self) -> &i64
[src]
pub fn set_condition2(&mut self, condition2: i64)
[src]
pub fn with_condition2(self, condition2: i64) -> HistTrade
[src]
pub fn condition2(&self) -> &i64
[src]
pub fn set_condition3(&mut self, condition3: i64)
[src]
pub fn with_condition3(self, condition3: i64) -> HistTrade
[src]
pub fn condition3(&self) -> &i64
[src]
pub fn set_condition4(&mut self, condition4: i64)
[src]
pub fn with_condition4(self, condition4: i64) -> HistTrade
[src]
pub fn condition4(&self) -> &i64
[src]
pub fn set_exchange(&mut self, exchange: String)
[src]
pub fn with_exchange(self, exchange: String) -> HistTrade
[src]
pub fn exchange(&self) -> &String
[src]
pub fn set_price(&mut self, price: f32)
[src]
pub fn with_price(self, price: f32) -> HistTrade
[src]
pub fn price(&self) -> &f32
[src]
pub fn set_size(&mut self, size: i64)
[src]
pub fn with_size(self, size: i64) -> HistTrade
[src]
pub fn size(&self) -> &i64
[src]
pub fn set_timestamp(&mut self, timestamp: String)
[src]
pub fn with_timestamp(self, timestamp: String) -> HistTrade
[src]
pub fn timestamp(&self) -> &String
[src]
Trait Implementations
impl Clone for HistTrade
[src]
impl Debug for HistTrade
[src]
impl<'de> Deserialize<'de> for HistTrade
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for HistTrade
[src]
Auto Trait Implementations
impl RefUnwindSafe for HistTrade
impl Send for HistTrade
impl Sync for HistTrade
impl Unpin for HistTrade
impl UnwindSafe for HistTrade
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,