[][src]Struct ib::models::Contract

pub struct Contract { /* fields omitted */ }

Methods

impl Contract
[src]

pub fn new() -> Contract
[src]

Contains all details of the contract, including rules you can use when placing orders

pub fn set_r_t_h(&mut self, r_t_h: bool)
[src]

pub fn with_r_t_h(self, r_t_h: bool) -> Contract
[src]

pub fn r_t_h(&self) -> Option<&bool>
[src]

pub fn reset_r_t_h(&mut self)
[src]

pub fn set_con_id(&mut self, con_id: String)
[src]

pub fn with_con_id(self, con_id: String) -> Contract
[src]

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

pub fn reset_con_id(&mut self)
[src]

pub fn set_company_name(&mut self, company_name: String)
[src]

pub fn with_company_name(self, company_name: String) -> Contract
[src]

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

pub fn reset_company_name(&mut self)
[src]

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

pub fn with_exchange(self, exchange: String) -> Contract
[src]

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

pub fn reset_exchange(&mut self)
[src]

pub fn set_local_symbol(&mut self, local_symbol: String)
[src]

pub fn with_local_symbol(self, local_symbol: String) -> Contract
[src]

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

pub fn reset_local_symbol(&mut self)
[src]

pub fn set_instrument_type(&mut self, instrument_type: String)
[src]

pub fn with_instrument_type(self, instrument_type: String) -> Contract
[src]

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

pub fn reset_instrument_type(&mut self)
[src]

pub fn set_currency(&mut self, currency: String)
[src]

pub fn with_currency(self, currency: String) -> Contract
[src]

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

pub fn reset_currency(&mut self)
[src]

pub fn set_category(&mut self, category: String)
[src]

pub fn with_category(self, category: String) -> Contract
[src]

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

pub fn reset_category(&mut self)
[src]

pub fn set_industry(&mut self, industry: String)
[src]

pub fn with_industry(self, industry: String) -> Contract
[src]

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

pub fn reset_industry(&mut self)
[src]

pub fn set_rules(&mut self, rules: ContractRules)
[src]

pub fn with_rules(self, rules: ContractRules) -> Contract
[src]

pub fn rules(&self) -> Option<&ContractRules>
[src]

pub fn reset_rules(&mut self)
[src]

Trait Implementations

impl Debug for Contract
[src]

impl Serialize for Contract
[src]

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

Auto Trait Implementations

impl Send for Contract

impl Sync for Contract

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]