[][src]Struct fxoanda::InstrumentCommission

pub struct InstrumentCommission {
    pub commission: Option<f32>,
    pub units_traded: Option<f32>,
    pub minimum_commission: Option<f32>,
}

Fields

commission: Option<f32>

The commission amount (in the Account's home currency) charged per unitsTraded of the instrument format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.

units_traded: Option<f32>

The number of units traded that the commission amount is based on. format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.

minimum_commission: Option<f32>

The minimum commission amount (in the Account's home currency) that is charged when an Order is filled for this instrument. format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.

Implementations

impl InstrumentCommission[src]

pub fn new() -> InstrumentCommission[src]

pub fn with_commission(self, x: f32) -> InstrumentCommission[src]

The commission amount (in the Account's home currency) charged per unitsTraded of the instrument format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.

  • param f32
  • return InstrumentCommission

pub fn with_units_traded(self, x: f32) -> InstrumentCommission[src]

The number of units traded that the commission amount is based on. format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.

  • param f32
  • return InstrumentCommission

pub fn with_minimum_commission(self, x: f32) -> InstrumentCommission[src]

The minimum commission amount (in the Account's home currency) that is charged when an Order is filled for this instrument. format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.

  • param f32
  • return InstrumentCommission

Trait Implementations

impl Debug for InstrumentCommission[src]

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

impl Serialize for InstrumentCommission[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> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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.