pub struct Contract {Show 30 fields
pub all_exchanges: Vec<String>,
pub asset_class: AssetClass,
pub chinese_name: String,
pub conid: i64,
pub country_code: String,
pub currency: String,
pub display_rule: DisplayRule,
pub expiry: Option<String>,
pub full_name: String,
pub group: Option<String>,
pub has_options: bool,
pub increment_rules: Vec<IncrementRule>,
pub is_event_contract: bool,
pub is_us: Option<bool>,
pub last_trading_day: Option<String>,
pub listing_exchange: String,
pub multiplier: Decimal,
pub name: Option<String>,
pub page_size: Option<i64>,
pub put_or_call: Option<OptionRight>,
pub sector: Option<String>,
pub sector_group: Option<String>,
pub strike: String,
pub ticker: String,
pub time: i64,
pub type_field: String,
pub und_conid: i64,
pub cross_currency: Option<bool>,
pub und_comp: Option<Value>,
pub und_sym: Option<String>,
}
Fields§
§all_exchanges: Vec<String>
§asset_class: AssetClass
§chinese_name: String
§conid: i64
§country_code: String
§currency: String
§display_rule: DisplayRule
§expiry: Option<String>
§full_name: String
§group: Option<String>
§has_options: bool
§increment_rules: Vec<IncrementRule>
§is_event_contract: bool
§is_us: Option<bool>
§last_trading_day: Option<String>
§listing_exchange: String
§multiplier: Decimal
§name: Option<String>
§page_size: Option<i64>
§put_or_call: Option<OptionRight>
§sector: Option<String>
§sector_group: Option<String>
§strike: String
§ticker: String
§time: i64
§type_field: String
§und_conid: i64
§cross_currency: Option<bool>
§und_comp: Option<Value>
§und_sym: Option<String>
Implementations§
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
impl StructuralPartialEq for Contract
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