pub struct GetCashLogRsp {
pub result: Option<i32>,
pub err_msg: Option<String>,
pub monthly_log_list: Vec<MonthlyLog>,
pub has_more: Option<bool>,
pub next_log_id: Option<String>,
pub is_partial: Option<bool>,
pub partial_reason: Option<String>,
}Expand description
获取资金流水 - 回包
Fields§
§result: Option<i32>0=成功, 其他=失败
err_msg: Option<String>错误信息
monthly_log_list: Vec<MonthlyLog>按月流水
has_more: Option<bool>是否还有更多
next_log_id: Option<String>下次请求的 log_id (cursor)
is_partial: Option<bool>v1.4.97 J1.1 daemon-only field (jackie 14% data drift 防御): backend 不提供 truncate 信号字段 (per 9-agent finding: C++ + mobile NN 都无). 当 daemon 启发式检测 response 异常截断 (e.g. monthly_log_list 长度 < max_cnt × 0.1 但 has_more=false), 设此 flag. 客户端应该 retry 同 query (sleep 30s 后) 或切窄时间窗. 真根因 (SharedBackend single-conn 跨 60+ handler frame interleaving) defer v1.4.98+ 实装 per-instance client_id + serial 号 correlation.
partial_reason: Option<String>v1.4.97 J1.1: 探测到的截断原因, 与 is_partial 配套. 已知值: “small_payload_no_more_flag” (启发式: list len << max_cnt + has_more=false).
Implementations§
Source§impl GetCashLogRsp
impl GetCashLogRsp
Sourcepub fn result(&self) -> i32
pub fn result(&self) -> i32
Returns the value of result, or the default value if result is unset.
Sourcepub fn err_msg(&self) -> &str
pub fn err_msg(&self) -> &str
Returns the value of err_msg, or the default value if err_msg is unset.
Sourcepub fn has_more(&self) -> bool
pub fn has_more(&self) -> bool
Returns the value of has_more, or the default value if has_more is unset.
Sourcepub fn next_log_id(&self) -> &str
pub fn next_log_id(&self) -> &str
Returns the value of next_log_id, or the default value if next_log_id is unset.
Sourcepub fn is_partial(&self) -> bool
pub fn is_partial(&self) -> bool
Returns the value of is_partial, or the default value if is_partial is unset.
Sourcepub fn partial_reason(&self) -> &str
pub fn partial_reason(&self) -> &str
Returns the value of partial_reason, or the default value if partial_reason is unset.
Trait Implementations§
Source§impl Clone for GetCashLogRsp
impl Clone for GetCashLogRsp
Source§fn clone(&self) -> GetCashLogRsp
fn clone(&self) -> GetCashLogRsp
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GetCashLogRsp
impl Debug for GetCashLogRsp
Source§impl Default for GetCashLogRsp
impl Default for GetCashLogRsp
Source§impl<'de> Deserialize<'de> for GetCashLogRspwhere
GetCashLogRsp: Default,
impl<'de> Deserialize<'de> for GetCashLogRspwhere
GetCashLogRsp: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Message for GetCashLogRsp
impl Message for GetCashLogRsp
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.