[][src]Struct pt::models::LastTrade

pub struct LastTrade { /* fields omitted */ }

Implementations

impl LastTrade[src]

pub fn new(price: f32, size: i64, exchange: i64, timestamp: i64) -> LastTrade[src]

pub fn set_price(&mut self, price: f32)[src]

pub fn with_price(self, price: f32) -> LastTrade[src]

pub fn price(&self) -> &f32[src]

pub fn set_size(&mut self, size: i64)[src]

pub fn with_size(self, size: i64) -> LastTrade[src]

pub fn size(&self) -> &i64[src]

pub fn set_exchange(&mut self, exchange: i64)[src]

pub fn with_exchange(self, exchange: i64) -> LastTrade[src]

pub fn exchange(&self) -> &i64[src]

pub fn set_cond1(&mut self, cond1: i64)[src]

pub fn with_cond1(self, cond1: i64) -> LastTrade[src]

pub fn cond1(&self) -> Option<&i64>[src]

pub fn reset_cond1(&mut self)[src]

pub fn set_cond2(&mut self, cond2: i64)[src]

pub fn with_cond2(self, cond2: i64) -> LastTrade[src]

pub fn cond2(&self) -> Option<&i64>[src]

pub fn reset_cond2(&mut self)[src]

pub fn set_cond3(&mut self, cond3: i64)[src]

pub fn with_cond3(self, cond3: i64) -> LastTrade[src]

pub fn cond3(&self) -> Option<&i64>[src]

pub fn reset_cond3(&mut self)[src]

pub fn set_cond4(&mut self, cond4: i64)[src]

pub fn with_cond4(self, cond4: i64) -> LastTrade[src]

pub fn cond4(&self) -> Option<&i64>[src]

pub fn reset_cond4(&mut self)[src]

pub fn set_timestamp(&mut self, timestamp: i64)[src]

pub fn with_timestamp(self, timestamp: i64) -> LastTrade[src]

pub fn timestamp(&self) -> &i64[src]

Trait Implementations

impl Clone for LastTrade[src]

impl Debug for LastTrade[src]

impl<'de> Deserialize<'de> for LastTrade[src]

impl Serialize for LastTrade[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.