Skip to main content

InputQuoteField

Struct InputQuoteField 

Source
#[repr(C)]
pub struct InputQuoteField {
Show 28 fields pub is_null: bool, pub BrokerID: String, pub InvestorID: String, pub QuoteRef: String, pub UserID: String, pub AskPrice: f64, pub BidPrice: f64, pub AskVolume: i32, pub BidVolume: i32, pub RequestID: i32, pub BusinessUnit: String, pub AskOffsetFlag: u8, pub BidOffsetFlag: u8, pub AskHedgeFlag: u8, pub BidHedgeFlag: u8, pub AskOrderRef: String, pub BidOrderRef: String, pub ForQuoteSysID: String, pub ExchangeID: String, pub InvestUnitID: String, pub ClientID: String, pub MacAddress: String, pub InstrumentID: String, pub IPAddress: String, pub ReplaceSysID: String, pub TimeCondition: u8, pub OrderMemo: String, pub SessionReqSeq: i32,
}
Expand description

输入的报价

Fields§

§is_null: bool

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

§BrokerID: String

经纪公司代码

§InvestorID: String

投资者代码

§QuoteRef: String

报价引用

§UserID: String

用户代码

§AskPrice: f64

卖价格

§BidPrice: f64

买价格

§AskVolume: i32

卖数量

§BidVolume: i32

买数量

§RequestID: i32

请求编号

§BusinessUnit: String

业务单元

§AskOffsetFlag: u8

卖开平标志

§BidOffsetFlag: u8

买开平标志

§AskHedgeFlag: u8

卖投机套保标志

§BidHedgeFlag: u8

买投机套保标志

§AskOrderRef: String

衍生卖报单引用

§BidOrderRef: String

衍生买报单引用

§ForQuoteSysID: String

应价编号

§ExchangeID: String

交易所代码

§InvestUnitID: String

投资单元代码

§ClientID: String

交易编码

§MacAddress: String

Mac地址

§InstrumentID: String

合约代码

§IPAddress: String

IP地址

§ReplaceSysID: String

被顶单编号

§TimeCondition: u8

有效期类型

§OrderMemo: String

报单回显字段

§SessionReqSeq: i32

session上请求计数 api自动维护

Trait Implementations§

Source§

impl Clone for InputQuoteField

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 InputQuoteField

Source§

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

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

impl Default for InputQuoteField

Source§

fn default() -> Self

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

impl ExternType for InputQuoteField

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.