#[repr(C)]pub struct SpecificInstrumentField {
pub reserve1: [u8; 31],
pub instrument_id: [u8; 81],
}
Fields§
§reserve1: [u8; 31]
保留的无效字段
instrument_id: [u8; 81]
合约代码
Implementations§
Source§impl SpecificInstrumentField
impl SpecificInstrumentField
Sourcepub fn get_instrument_id(&self) -> CtpResult<String>
pub fn get_instrument_id(&self) -> CtpResult<String>
获取合约代码的UTF-8字符串
Trait Implementations§
Source§impl Clone for SpecificInstrumentField
impl Clone for SpecificInstrumentField
Source§fn clone(&self) -> SpecificInstrumentField
fn clone(&self) -> SpecificInstrumentField
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 moreSource§impl Debug for SpecificInstrumentField
impl Debug for SpecificInstrumentField
Auto Trait Implementations§
impl Freeze for SpecificInstrumentField
impl RefUnwindSafe for SpecificInstrumentField
impl Send for SpecificInstrumentField
impl Sync for SpecificInstrumentField
impl Unpin for SpecificInstrumentField
impl UnwindSafe for SpecificInstrumentField
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