[−][src]Struct ib::models::Contract
Methods
impl Contract
[src]
impl Contract
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 Debug for Contract
impl Serialize for Contract
[src]
impl Serialize for Contract
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where | [src] |
impl<'de> Deserialize<'de> for Contract
[src]
impl<'de> Deserialize<'de> for Contract
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where | [src] |
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> Erased for T
impl<T> Erased for T
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,