pub struct Contract { /* private fields */ }
Implementations§
Source§impl Contract
impl Contract
Sourcepub fn new() -> Contract
pub fn new() -> Contract
Contains all details of the contract, including rules you can use when placing orders
pub fn set_category(&mut self, category: String)
pub fn with_category(self, category: String) -> Contract
pub fn category(&self) -> Option<&String>
pub fn reset_category(&mut self)
pub fn set_company_name(&mut self, company_name: String)
pub fn with_company_name(self, company_name: String) -> Contract
pub fn company_name(&self) -> Option<&String>
pub fn reset_company_name(&mut self)
pub fn set_con_id(&mut self, con_id: String)
pub fn with_con_id(self, con_id: String) -> Contract
pub fn con_id(&self) -> Option<&String>
pub fn reset_con_id(&mut self)
pub fn set_currency(&mut self, currency: String)
pub fn with_currency(self, currency: String) -> Contract
pub fn currency(&self) -> Option<&String>
pub fn reset_currency(&mut self)
pub fn set_exchange(&mut self, exchange: String)
pub fn with_exchange(self, exchange: String) -> Contract
pub fn exchange(&self) -> Option<&String>
pub fn reset_exchange(&mut self)
pub fn set_industry(&mut self, industry: String)
pub fn with_industry(self, industry: String) -> Contract
pub fn industry(&self) -> Option<&String>
pub fn reset_industry(&mut self)
pub fn set_instrument_type(&mut self, instrument_type: String)
pub fn with_instrument_type(self, instrument_type: String) -> Contract
pub fn instrument_type(&self) -> Option<&String>
pub fn reset_instrument_type(&mut self)
pub fn set_local_symbol(&mut self, local_symbol: String)
pub fn with_local_symbol(self, local_symbol: String) -> Contract
pub fn local_symbol(&self) -> Option<&String>
pub fn reset_local_symbol(&mut self)
pub fn set_r_t_h(&mut self, r_t_h: bool)
pub fn with_r_t_h(self, r_t_h: bool) -> Contract
pub fn r_t_h(&self) -> Option<&bool>
pub fn reset_r_t_h(&mut self)
pub fn set_rules(&mut self, rules: ContractRules)
pub fn with_rules(self, rules: ContractRules) -> Contract
pub fn rules(&self) -> Option<&ContractRules>
pub fn reset_rules(&mut self)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Contract
impl<'de> Deserialize<'de> for Contract
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Contract
impl RefUnwindSafe for Contract
impl Send for Contract
impl Sync for Contract
impl Unpin for Contract
impl UnwindSafe for Contract
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more