pub struct PositionLog {Show 20 fields
pub id: Option<u64>,
pub log_id: Option<u64>,
pub process_date: Option<u32>,
pub account_id: Option<u64>,
pub market: Option<u32>,
pub broker_id: Option<u32>,
pub symbol: Option<String>,
pub long_short: Option<String>,
pub exchange: Option<String>,
pub currency: Option<String>,
pub buy_quantity: Option<String>,
pub buy_cost: Option<String>,
pub sell_quantity: Option<String>,
pub sell_income: Option<String>,
pub change_after: Option<String>,
pub settle_date: Option<u32>,
pub biz_type_id: Option<u32>,
pub biz_flow_id: Option<String>,
pub created_time: Option<u64>,
pub version: Option<i64>,
}Fields§
§id: Option<u64>持仓流水id
log_id: Option<u64>变更流水id
process_date: Option<u32>变更所属周期,记账日
account_id: Option<u64>账户号码
market: Option<u32>所属市场
broker_id: Option<u32>券商id
symbol: Option<String>股票代码
long_short: Option<String>多空类型,LONG为多,SHORT为空
exchange: Option<String>交易所
currency: Option<String>货币代码,比如HKD、USD
buy_quantity: Option<String>买入数量
buy_cost: Option<String>买入支出
sell_quantity: Option<String>卖出数量
sell_income: Option<String>卖出收入
change_after: Option<String>变更后余额
settle_date: Option<u32>交收日(0:立即交收, 99999999:结算后交收)
biz_type_id: Option<u32>变更类型id
biz_flow_id: Option<String>业务系统流水id
created_time: Option<u64>流水生成时间
version: Option<i64>变更后的实时资产version
Implementations§
Source§impl PositionLog
impl PositionLog
Sourcepub fn process_date(&self) -> u32
pub fn process_date(&self) -> u32
Returns the value of process_date, or the default value if process_date is unset.
Sourcepub fn account_id(&self) -> u64
pub fn account_id(&self) -> u64
Returns the value of account_id, or the default value if account_id is unset.
Sourcepub fn market(&self) -> u32
pub fn market(&self) -> u32
Returns the value of market, or the default value if market is unset.
Sourcepub fn broker_id(&self) -> u32
pub fn broker_id(&self) -> u32
Returns the value of broker_id, or the default value if broker_id is unset.
Sourcepub fn symbol(&self) -> &str
pub fn symbol(&self) -> &str
Returns the value of symbol, or the default value if symbol is unset.
Sourcepub fn long_short(&self) -> &str
pub fn long_short(&self) -> &str
Returns the value of long_short, or the default value if long_short is unset.
Sourcepub fn exchange(&self) -> &str
pub fn exchange(&self) -> &str
Returns the value of exchange, or the default value if exchange is unset.
Sourcepub fn currency(&self) -> &str
pub fn currency(&self) -> &str
Returns the value of currency, or the default value if currency is unset.
Sourcepub fn buy_quantity(&self) -> &str
pub fn buy_quantity(&self) -> &str
Returns the value of buy_quantity, or the default value if buy_quantity is unset.
Sourcepub fn buy_cost(&self) -> &str
pub fn buy_cost(&self) -> &str
Returns the value of buy_cost, or the default value if buy_cost is unset.
Sourcepub fn sell_quantity(&self) -> &str
pub fn sell_quantity(&self) -> &str
Returns the value of sell_quantity, or the default value if sell_quantity is unset.
Sourcepub fn sell_income(&self) -> &str
pub fn sell_income(&self) -> &str
Returns the value of sell_income, or the default value if sell_income is unset.
Sourcepub fn change_after(&self) -> &str
pub fn change_after(&self) -> &str
Returns the value of change_after, or the default value if change_after is unset.
Sourcepub fn settle_date(&self) -> u32
pub fn settle_date(&self) -> u32
Returns the value of settle_date, or the default value if settle_date is unset.
Sourcepub fn biz_type_id(&self) -> u32
pub fn biz_type_id(&self) -> u32
Returns the value of biz_type_id, or the default value if biz_type_id is unset.
Sourcepub fn biz_flow_id(&self) -> &str
pub fn biz_flow_id(&self) -> &str
Returns the value of biz_flow_id, or the default value if biz_flow_id is unset.
Sourcepub fn created_time(&self) -> u64
pub fn created_time(&self) -> u64
Returns the value of created_time, or the default value if created_time is unset.
Trait Implementations§
Source§impl Clone for PositionLog
impl Clone for PositionLog
Source§fn clone(&self) -> PositionLog
fn clone(&self) -> PositionLog
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PositionLog
impl Debug for PositionLog
Source§impl Default for PositionLog
impl Default for PositionLog
Source§impl Hash for PositionLog
impl Hash for PositionLog
Source§impl Message for PositionLog
impl Message for PositionLog
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for PositionLog
impl PartialEq for PositionLog
impl Eq for PositionLog
impl StructuralPartialEq for PositionLog
Auto Trait Implementations§
impl Freeze for PositionLog
impl RefUnwindSafe for PositionLog
impl Send for PositionLog
impl Sync for PositionLog
impl Unpin for PositionLog
impl UnsafeUnpin for PositionLog
impl UnwindSafe for PositionLog
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.