Skip to main content

InputOrderField

Struct InputOrderField 

Source
#[repr(C)]
pub struct InputOrderField {
Show 33 fields pub is_null: bool, pub BrokerID: String, pub InvestorID: String, pub OrderRef: String, pub UserID: String, pub OrderPriceType: u8, pub Direction: u8, pub CombOffsetFlag: String, pub CombHedgeFlag: String, pub LimitPrice: f64, pub VolumeTotalOriginal: i32, pub TimeCondition: u8, pub GTDDate: String, pub VolumeCondition: u8, pub MinVolume: i32, pub ContingentCondition: u8, pub StopPrice: f64, pub ForceCloseReason: u8, pub IsAutoSuspend: i32, pub BusinessUnit: String, pub RequestID: i32, pub UserForceClose: i32, pub IsSwapOrder: i32, pub ExchangeID: String, pub InvestUnitID: String, pub AccountID: String, pub CurrencyID: String, pub ClientID: String, pub MacAddress: String, pub InstrumentID: String, pub IPAddress: String, pub OrderMemo: String, pub SessionReqSeq: i32,
}
Expand description

输入报单

Fields§

§is_null: bool

C++ 端传入的整体 Field 是否为 nullptr

§BrokerID: String

经纪公司代码

§InvestorID: String

投资者代码

§OrderRef: String

报单引用

§UserID: String

用户代码

§OrderPriceType: u8

报单价格条件

§Direction: u8

买卖方向

§CombOffsetFlag: String

组合开平标志

§CombHedgeFlag: String

组合投机套保标志

§LimitPrice: f64

价格

§VolumeTotalOriginal: i32

数量

§TimeCondition: u8

有效期类型

§GTDDate: String

GTD日期

§VolumeCondition: u8

成交量类型

§MinVolume: i32

最小成交量

§ContingentCondition: u8

触发条件

§StopPrice: f64

止损价

§ForceCloseReason: u8

强平原因

§IsAutoSuspend: i32

自动挂起标志

§BusinessUnit: String

业务单元

§RequestID: i32

请求编号

§UserForceClose: i32

用户强平标志

§IsSwapOrder: i32

互换单标志

§ExchangeID: String

交易所代码

§InvestUnitID: String

投资单元代码

§AccountID: String

资金账号

§CurrencyID: String

币种代码

§ClientID: String

交易编码

§MacAddress: String

Mac地址

§InstrumentID: String

合约代码

§IPAddress: String

IP地址

§OrderMemo: String

报单回显字段

§SessionReqSeq: i32

session上请求计数 api自动维护

Trait Implementations§

Source§

impl Clone for InputOrderField

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for InputOrderField

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for InputOrderField

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl ExternType for InputOrderField

Source§

type Kind = Trivial

Source§

type Id

A type-level representation of the type’s C++ namespace and type name. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.