CThostFtdcInvestorPositionField

Struct CThostFtdcInvestorPositionField 

Source
#[repr(C)]
pub struct CThostFtdcInvestorPositionField {
Show 50 fields pub reserve1: TThostFtdcOldInstrumentIDType, pub BrokerID: TThostFtdcBrokerIDType, pub InvestorID: TThostFtdcInvestorIDType, pub PosiDirection: TThostFtdcPosiDirectionType, pub HedgeFlag: TThostFtdcHedgeFlagType, pub PositionDate: TThostFtdcPositionDateType, pub YdPosition: TThostFtdcVolumeType, pub Position: TThostFtdcVolumeType, pub LongFrozen: TThostFtdcVolumeType, pub ShortFrozen: TThostFtdcVolumeType, pub LongFrozenAmount: TThostFtdcMoneyType, pub ShortFrozenAmount: TThostFtdcMoneyType, pub OpenVolume: TThostFtdcVolumeType, pub CloseVolume: TThostFtdcVolumeType, pub OpenAmount: TThostFtdcMoneyType, pub CloseAmount: TThostFtdcMoneyType, pub PositionCost: TThostFtdcMoneyType, pub PreMargin: TThostFtdcMoneyType, pub UseMargin: TThostFtdcMoneyType, pub FrozenMargin: TThostFtdcMoneyType, pub FrozenCash: TThostFtdcMoneyType, pub FrozenCommission: TThostFtdcMoneyType, pub CashIn: TThostFtdcMoneyType, pub Commission: TThostFtdcMoneyType, pub CloseProfit: TThostFtdcMoneyType, pub PositionProfit: TThostFtdcMoneyType, pub PreSettlementPrice: TThostFtdcPriceType, pub SettlementPrice: TThostFtdcPriceType, pub TradingDay: TThostFtdcDateType, pub SettlementID: TThostFtdcSettlementIDType, pub OpenCost: TThostFtdcMoneyType, pub ExchangeMargin: TThostFtdcMoneyType, pub CombPosition: TThostFtdcVolumeType, pub CombLongFrozen: TThostFtdcVolumeType, pub CombShortFrozen: TThostFtdcVolumeType, pub CloseProfitByDate: TThostFtdcMoneyType, pub CloseProfitByTrade: TThostFtdcMoneyType, pub TodayPosition: TThostFtdcVolumeType, pub MarginRateByMoney: TThostFtdcRatioType, pub MarginRateByVolume: TThostFtdcRatioType, pub StrikeFrozen: TThostFtdcVolumeType, pub StrikeFrozenAmount: TThostFtdcMoneyType, pub AbandonFrozen: TThostFtdcVolumeType, pub ExchangeID: TThostFtdcExchangeIDType, pub YdStrikeFrozen: TThostFtdcVolumeType, pub InvestUnitID: TThostFtdcInvestUnitIDType, pub PositionCostOffset: TThostFtdcMoneyType, pub TasPosition: TThostFtdcVolumeType, pub TasPositionCost: TThostFtdcMoneyType, pub InstrumentID: TThostFtdcInstrumentIDType,
}

Fields§

§reserve1: TThostFtdcOldInstrumentIDType§BrokerID: TThostFtdcBrokerIDType§InvestorID: TThostFtdcInvestorIDType§PosiDirection: TThostFtdcPosiDirectionType§HedgeFlag: TThostFtdcHedgeFlagType§PositionDate: TThostFtdcPositionDateType§YdPosition: TThostFtdcVolumeType§Position: TThostFtdcVolumeType§LongFrozen: TThostFtdcVolumeType§ShortFrozen: TThostFtdcVolumeType§LongFrozenAmount: TThostFtdcMoneyType§ShortFrozenAmount: TThostFtdcMoneyType§OpenVolume: TThostFtdcVolumeType§CloseVolume: TThostFtdcVolumeType§OpenAmount: TThostFtdcMoneyType§CloseAmount: TThostFtdcMoneyType§PositionCost: TThostFtdcMoneyType§PreMargin: TThostFtdcMoneyType§UseMargin: TThostFtdcMoneyType§FrozenMargin: TThostFtdcMoneyType§FrozenCash: TThostFtdcMoneyType§FrozenCommission: TThostFtdcMoneyType§CashIn: TThostFtdcMoneyType§Commission: TThostFtdcMoneyType§CloseProfit: TThostFtdcMoneyType§PositionProfit: TThostFtdcMoneyType§PreSettlementPrice: TThostFtdcPriceType§SettlementPrice: TThostFtdcPriceType§TradingDay: TThostFtdcDateType§SettlementID: TThostFtdcSettlementIDType§OpenCost: TThostFtdcMoneyType§ExchangeMargin: TThostFtdcMoneyType§CombPosition: TThostFtdcVolumeType§CombLongFrozen: TThostFtdcVolumeType§CombShortFrozen: TThostFtdcVolumeType§CloseProfitByDate: TThostFtdcMoneyType§CloseProfitByTrade: TThostFtdcMoneyType§TodayPosition: TThostFtdcVolumeType§MarginRateByMoney: TThostFtdcRatioType§MarginRateByVolume: TThostFtdcRatioType§StrikeFrozen: TThostFtdcVolumeType§StrikeFrozenAmount: TThostFtdcMoneyType§AbandonFrozen: TThostFtdcVolumeType§ExchangeID: TThostFtdcExchangeIDType§YdStrikeFrozen: TThostFtdcVolumeType§InvestUnitID: TThostFtdcInvestUnitIDType§PositionCostOffset: TThostFtdcMoneyType§TasPosition: TThostFtdcVolumeType§TasPositionCost: TThostFtdcMoneyType§InstrumentID: TThostFtdcInstrumentIDType

Trait Implementations§

Source§

impl Clone for CThostFtdcInvestorPositionField

Source§

fn clone(&self) -> CThostFtdcInvestorPositionField

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for CThostFtdcInvestorPositionField

Source§

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

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

impl Copy for CThostFtdcInvestorPositionField

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.