pub struct TotalDetailAsset {
pub yesterday_incomes: Option<String>,
pub accumulated_incomes: Option<String>,
pub total_asset: Option<String>,
pub pending_asset: Option<String>,
pub cash: Option<String>,
}Expand description
v1.4.110 final E.5 (P0 wire-format bug fix): 原 Rust 字段号 [1,2,3] 与
C++ [1..5] 错位 → backend 发 total_asset(C++ tag 3) decode 到 Rust
pending_asset(tag 3); backend 发 pending_asset(tag 4) + cash(tag 5)
silently dropped (Rust 没这俩 tag). 致 HK/US fund 账户 GetFunds 返
pending_asset = 真 total_asset 值 (silent data corruption, 跨 v1.4.x
多版未发现 — pitfall #44 跨版本 regression + #45 silent-success + #54
schema/runtime drift 三重).
对齐 C++ /Users/leaf/ai-lab/o-src/FutuOpenD/Src/NNProtoFile/Server/PB/Trade/mobile_fund_asset.proto:154-160.
Fields§
§yesterday_incomes: Option<String>昨日收益
accumulated_incomes: Option<String>累计收益
total_asset: Option<String>总资产
pending_asset: Option<String>在途总资产
cash: Option<String>现金余额
Implementations§
Source§impl TotalDetailAsset
impl TotalDetailAsset
Sourcepub fn yesterday_incomes(&self) -> &str
pub fn yesterday_incomes(&self) -> &str
Returns the value of yesterday_incomes, or the default value if yesterday_incomes is unset.
Sourcepub fn accumulated_incomes(&self) -> &str
pub fn accumulated_incomes(&self) -> &str
Returns the value of accumulated_incomes, or the default value if accumulated_incomes is unset.
Sourcepub fn total_asset(&self) -> &str
pub fn total_asset(&self) -> &str
Returns the value of total_asset, or the default value if total_asset is unset.
Sourcepub fn pending_asset(&self) -> &str
pub fn pending_asset(&self) -> &str
Returns the value of pending_asset, or the default value if pending_asset is unset.
Trait Implementations§
Source§impl Clone for TotalDetailAsset
impl Clone for TotalDetailAsset
Source§fn clone(&self) -> TotalDetailAsset
fn clone(&self) -> TotalDetailAsset
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TotalDetailAsset
impl Debug for TotalDetailAsset
Source§impl Default for TotalDetailAsset
impl Default for TotalDetailAsset
Source§impl Hash for TotalDetailAsset
impl Hash for TotalDetailAsset
Source§impl Message for TotalDetailAsset
impl Message for TotalDetailAsset
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 TotalDetailAsset
impl PartialEq for TotalDetailAsset
impl Eq for TotalDetailAsset
impl StructuralPartialEq for TotalDetailAsset
Auto Trait Implementations§
impl Freeze for TotalDetailAsset
impl RefUnwindSafe for TotalDetailAsset
impl Send for TotalDetailAsset
impl Sync for TotalDetailAsset
impl Unpin for TotalDetailAsset
impl UnsafeUnpin for TotalDetailAsset
impl UnwindSafe for TotalDetailAsset
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.