pub struct AccountInfoRsp {Show 15 fields
pub msg_header: Option<MsgHeader>,
pub result: Option<i32>,
pub err_msg: Option<String>,
pub union_fund_info: Option<AccFundInfo>,
pub union_today_statistic: Option<TodayTrdStatistic>,
pub union_cash_info: Option<AccCashInfo>,
pub fund_info_list: Vec<AccFundInfo>,
pub today_statistic_list: Vec<TodayTrdStatistic>,
pub cash_info_list: Vec<AccCashInfo>,
pub pstn_info_list: Vec<AccPstnInfo>,
pub fund_pstn_info_list: Vec<AccPstnInfo>,
pub diff_market_today_statistic_list: Vec<TodayTrdStatistic>,
pub combo_info_list: Vec<ComboInfo>,
pub diff_market_fund_info_list: Vec<AccFundInfo>,
pub portfolio_pstn_info_list: Vec<AccPstnInfo>,
}Fields§
§msg_header: Option<MsgHeader>§result: Option<i32>成功0,过载错误:296
err_msg: Option<String>§union_fund_info: Option<AccFundInfo>目前证券账户是单币种的,但以后一个账户可能有多个币种,现金、持仓信息直接返回原币种信息即可 但资金信息的购买力等、今日交易统计中的今日成交额等,都需要换算成统一币种相加再展示,即 union_fund_info 和 union_today_statistic 假设用户实际有1港币1美元,fund_info_list里面会有两个item,分别是1港币和1美元,union_fund_info是换算成请求中指定币种后的值,假设汇率是8且指定换算为港币的话,union就会是9港币 港股与美股没有多币种,只有市场默认对应货币:港币或者美元,因此请求目标币种无效,没有分币种信息。 期货5与全能账户6有多币种信息,可以请求目标币种。
统一成换算币种的资金信息
union_today_statistic: Option<TodayTrdStatistic>统一成换算币种的今日交易统计信息
union_cash_info: Option<AccCashInfo>统一成换算币种的现金信息列表
fund_info_list: Vec<AccFundInfo>分币种的资金信息列表
today_statistic_list: Vec<TodayTrdStatistic>分币种的今日交易统计信息列表
cash_info_list: Vec<AccCashInfo>分币种的现金信息列表
pstn_info_list: Vec<AccPstnInfo>分币种的证券持仓信息列表
fund_pstn_info_list: Vec<AccPstnInfo>分币种的基金持仓信息列表
diff_market_today_statistic_list: Vec<TodayTrdStatistic>分市场的今日交易统计信息列表(仅全能账户) 仅返回 profit currency stock_market 字段
combo_info_list: Vec<ComboInfo>分币种的组合视图持仓信息列表,不包括财富基金的基金和债券持仓
diff_market_fund_info_list: Vec<AccFundInfo>分(交易)市场的资金信息列表(仅全能账户) 仅返回 mv diluted_profit currency stock_market,且只有部分市场返回total asset(市值+现金)
portfolio_pstn_info_list: Vec<AccPstnInfo>分币种的投资组合持仓信息列表,无论持仓视图还是组合视图都是从这里返回投资组合持仓
Implementations§
Trait Implementations§
Source§impl Clone for AccountInfoRsp
impl Clone for AccountInfoRsp
Source§fn clone(&self) -> AccountInfoRsp
fn clone(&self) -> AccountInfoRsp
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 AccountInfoRsp
impl Debug for AccountInfoRsp
Source§impl Default for AccountInfoRsp
impl Default for AccountInfoRsp
Source§impl Message for AccountInfoRsp
impl Message for AccountInfoRsp
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 AccountInfoRsp
impl PartialEq for AccountInfoRsp
impl StructuralPartialEq for AccountInfoRsp
Auto Trait Implementations§
impl Freeze for AccountInfoRsp
impl RefUnwindSafe for AccountInfoRsp
impl Send for AccountInfoRsp
impl Sync for AccountInfoRsp
impl Unpin for AccountInfoRsp
impl UnsafeUnpin for AccountInfoRsp
impl UnwindSafe for AccountInfoRsp
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