[][src]Struct pt::models::LastQuote

pub struct LastQuote { /* fields omitted */ }

Implementations

impl LastQuote[src]

pub fn new(
    askprice: f32,
    asksize: i64,
    askexchange: i64,
    bidprice: f32,
    bidsize: i64,
    bidexchange: i64,
    timestamp: i64
) -> LastQuote
[src]

pub fn set_askprice(&mut self, askprice: f32)[src]

pub fn with_askprice(self, askprice: f32) -> LastQuote[src]

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

pub fn set_asksize(&mut self, asksize: i64)[src]

pub fn with_asksize(self, asksize: i64) -> LastQuote[src]

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

pub fn set_askexchange(&mut self, askexchange: i64)[src]

pub fn with_askexchange(self, askexchange: i64) -> LastQuote[src]

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

pub fn set_bidprice(&mut self, bidprice: f32)[src]

pub fn with_bidprice(self, bidprice: f32) -> LastQuote[src]

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

pub fn set_bidsize(&mut self, bidsize: i64)[src]

pub fn with_bidsize(self, bidsize: i64) -> LastQuote[src]

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

pub fn set_bidexchange(&mut self, bidexchange: i64)[src]

pub fn with_bidexchange(self, bidexchange: i64) -> LastQuote[src]

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

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

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

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

Trait Implementations

impl Clone for LastQuote[src]

impl Debug for LastQuote[src]

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

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