[][src]Struct pt::models::Trade

pub struct Trade { /* fields omitted */ }

Implementations

impl Trade[src]

pub fn new(p: f32, s: i64, t: i64) -> Trade[src]

pub fn set_c1(&mut self, c1: i64)[src]

pub fn with_c1(self, c1: i64) -> Trade[src]

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

pub fn reset_c1(&mut self)[src]

pub fn set_c2(&mut self, c2: i64)[src]

pub fn with_c2(self, c2: i64) -> Trade[src]

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

pub fn reset_c2(&mut self)[src]

pub fn set_c3(&mut self, c3: i64)[src]

pub fn with_c3(self, c3: i64) -> Trade[src]

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

pub fn reset_c3(&mut self)[src]

pub fn set_c4(&mut self, c4: i64)[src]

pub fn with_c4(self, c4: i64) -> Trade[src]

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

pub fn reset_c4(&mut self)[src]

pub fn set_e(&mut self, e: String)[src]

pub fn with_e(self, e: String) -> Trade[src]

pub fn e(&self) -> Option<&String>[src]

pub fn reset_e(&mut self)[src]

pub fn set_p(&mut self, p: f32)[src]

pub fn with_p(self, p: f32) -> Trade[src]

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

pub fn set_s(&mut self, s: i64)[src]

pub fn with_s(self, s: i64) -> Trade[src]

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

pub fn set_t(&mut self, t: i64)[src]

pub fn with_t(self, t: i64) -> Trade[src]

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

Trait Implementations

impl Clone for Trade[src]

impl Debug for Trade[src]

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

impl Serialize for Trade[src]

Auto Trait Implementations

impl RefUnwindSafe for Trade

impl Send for Trade

impl Sync for Trade

impl Unpin for Trade

impl UnwindSafe for Trade

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.