[][src]Struct pt::models::LastForexTrade

pub struct LastForexTrade { /* fields omitted */ }

Implementations

impl LastForexTrade[src]

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

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

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

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

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

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

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

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

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

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

Trait Implementations

impl Clone for LastForexTrade[src]

impl Debug for LastForexTrade[src]

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

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