[][src]Struct pt::models::ForexSnapshotTicker

pub struct ForexSnapshotTicker { /* fields omitted */ }

Implementations

impl ForexSnapshotTicker[src]

pub fn new(
    ticker: String,
    day: ForexSnapshotAgg,
    min: ForexSnapshotAgg,
    prev_day: ForexSnapshotAgg,
    todays_change: f32,
    todays_change_perc: f32,
    updated: i64
) -> ForexSnapshotTicker
[src]

pub fn set_ticker(&mut self, ticker: String)[src]

pub fn with_ticker(self, ticker: String) -> ForexSnapshotTicker[src]

pub fn ticker(&self) -> &String[src]

pub fn set_day(&mut self, day: ForexSnapshotAgg)[src]

pub fn with_day(self, day: ForexSnapshotAgg) -> ForexSnapshotTicker[src]

pub fn day(&self) -> &ForexSnapshotAgg[src]

pub fn set_last_trade(&mut self, last_trade: Forex)[src]

pub fn with_last_trade(self, last_trade: Forex) -> ForexSnapshotTicker[src]

pub fn last_trade(&self) -> Option<&Forex>[src]

pub fn reset_last_trade(&mut self)[src]

pub fn set_min(&mut self, min: ForexSnapshotAgg)[src]

pub fn with_min(self, min: ForexSnapshotAgg) -> ForexSnapshotTicker[src]

pub fn min(&self) -> &ForexSnapshotAgg[src]

pub fn set_prev_day(&mut self, prev_day: ForexSnapshotAgg)[src]

pub fn with_prev_day(self, prev_day: ForexSnapshotAgg) -> ForexSnapshotTicker[src]

pub fn prev_day(&self) -> &ForexSnapshotAgg[src]

pub fn set_todays_change(&mut self, todays_change: f32)[src]

pub fn with_todays_change(self, todays_change: f32) -> ForexSnapshotTicker[src]

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

pub fn set_todays_change_perc(&mut self, todays_change_perc: f32)[src]

pub fn with_todays_change_perc(
    self,
    todays_change_perc: f32
) -> ForexSnapshotTicker
[src]

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

pub fn set_updated(&mut self, updated: i64)[src]

pub fn with_updated(self, updated: i64) -> ForexSnapshotTicker[src]

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

Trait Implementations

impl Clone for ForexSnapshotTicker[src]

impl Debug for ForexSnapshotTicker[src]

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

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