[][src]Struct quantaxis_rs::transaction::QATransaction

pub struct QATransaction {
    pub code: String,
    pub amount: f64,
    pub price: f64,
    pub datetime: String,
    pub order_id: String,
    pub trade_id: String,
    pub realorder_id: String,
    pub account_cookie: String,
    pub commission: f64,
    pub tax: f64,
    pub message: String,
    pub frozen: f64,
    pub direction: i32,
}

Fields

code: Stringamount: f64price: f64datetime: Stringorder_id: Stringtrade_id: Stringrealorder_id: Stringaccount_cookie: Stringcommission: f64tax: f64message: Stringfrozen: f64direction: i32

Implementations

impl QATransaction[src]

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

pub fn get_direction_or_offset(&mut self, towards: i32) -> (String, String)[src]

pub fn to_qifitrade(&mut self) -> Trade[src]

Trait Implementations

impl Clone for QATransaction[src]

impl Debug for QATransaction[src]

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

impl Serialize for QATransaction[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> Pointable for T

type Init = T

The type for initializers.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,