pub struct MainLinkContractInfo {
pub real_stock_id: u64,
pub real_code: String,
}Expand description
v1.4.106 codex F5: 期货主连合约 → 真实月份合约 stock_id 解析结果.
Fields§
§real_stock_id: u64真实月份合约 stock_id (C++ OMEvent p3 = stock_id).
主连 symbol (HSImain) 的 origin_id 是当前主力月份合约 stock_id.
real_code: String真实月份合约 code (e.g. “HSI2604” / “NQ2606”), 从响应中 C++ 会作为
p3 的那一项 code 字段读. 如果 backend 未带 code, 则为空 string ——
caller 需要从本地 stock_list cache id_to_key 反查.
Trait Implementations§
Source§impl Clone for MainLinkContractInfo
impl Clone for MainLinkContractInfo
Source§fn clone(&self) -> MainLinkContractInfo
fn clone(&self) -> MainLinkContractInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MainLinkContractInfo
impl RefUnwindSafe for MainLinkContractInfo
impl Send for MainLinkContractInfo
impl Sync for MainLinkContractInfo
impl Unpin for MainLinkContractInfo
impl UnsafeUnpin for MainLinkContractInfo
impl UnwindSafe for MainLinkContractInfo
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