[][src]Struct pt::models::HistTrade

pub struct HistTrade { /* fields omitted */ }

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]

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]

impl Serialize for HistTrade[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.