pub struct AssetChange {
pub process_date: Option<u32>,
pub src_event_id: Option<String>,
pub biz_type_id: Option<u32>,
pub biz_flow_id: Option<String>,
pub origin_id: Option<String>,
pub cash_change_list: Vec<CashChange>,
pub position_change_list: Vec<PositionChange>,
}Expand description
一笔资产变更
Fields§
§process_date: Option<u32>一般来说现金变动与持仓变动是同时发生的,即买货付钱,卖货收钱。
变更所属周期,记账日
src_event_id: Option<String>【废弃】业务系统变更事件ID,明细对账使用,多次变更可能相同
biz_type_id: Option<u32>业务类型ID,见最下附录【变更详细】说明
biz_flow_id: Option<String>业务系统流水id,用于资产反查业务方流水
origin_id: Option<String>业务系统变更id,PTS明细对账使用,多次变更可能相同(US市场必填)
cash_change_list: Vec<CashChange>现金变动列表
position_change_list: Vec<PositionChange>持仓变动列表
Implementations§
Source§impl AssetChange
impl AssetChange
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 src_event_id(&self) -> &str
pub fn src_event_id(&self) -> &str
Returns the value of src_event_id, or the default value if src_event_id 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.
Trait Implementations§
Source§impl Clone for AssetChange
impl Clone for AssetChange
Source§fn clone(&self) -> AssetChange
fn clone(&self) -> AssetChange
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 AssetChange
impl Debug for AssetChange
Source§impl Default for AssetChange
impl Default for AssetChange
Source§impl Message for AssetChange
impl Message for AssetChange
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for AssetChange
impl PartialEq for AssetChange
impl StructuralPartialEq for AssetChange
Auto Trait Implementations§
impl Freeze for AssetChange
impl RefUnwindSafe for AssetChange
impl Send for AssetChange
impl Sync for AssetChange
impl Unpin for AssetChange
impl UnsafeUnpin for AssetChange
impl UnwindSafe for AssetChange
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