pub struct CashLog {Show 20 fields
pub log_id: Option<String>,
pub title: Option<String>,
pub label: Option<String>,
pub label_desc: Option<String>,
pub created_time: Option<String>,
pub cash_change: Option<String>,
pub balance: Option<String>,
pub stock_name: Option<String>,
pub icon_url: Option<String>,
pub symbol_code: Option<String>,
pub symbol_name: Option<String>,
pub created_timestamp: Option<u32>,
pub label_list: Vec<Label>,
pub stock_id: Option<u64>,
pub stock_name_label_list: Vec<Label>,
pub biz_type_id: Option<u32>,
pub contract_direction: Option<i32>,
pub contract_direction_label: Option<String>,
pub contract_symbol_name: Option<String>,
pub currency: Option<String>,
}Fields§
§log_id: Option<String>流水 id (传给 GetCashDetail 拿明细)
title: Option<String>标题
label: Option<String>标签 (deprecated, 用 label_list)
label_desc: Option<String>标签说明 (deprecated, 用 label_list)
created_time: Option<String>时间字符串, 直接展示
cash_change: Option<String>变动量, 字符串数值
balance: Option<String>余额, 字符串数值 (历史流水可能没有)
stock_name: Option<String>股票代码和名称
icon_url: Option<String>icon 链接
symbol_code: Option<String>股票代码
symbol_name: Option<String>股票名称
created_timestamp: Option<u32>10 位时间戳
label_list: Vec<Label>标签列表 (最多 2 个)
stock_id: Option<u64>行情 stock id (取不到返 0)
stock_name_label_list: Vec<Label>股票代码 / 名称的标签
biz_type_id: Option<u32>业务类型 id
contract_direction: Option<i32>注: 移动端 proto 这里有 quote_common_enum.ContractDirection enum 字段 (事件合约方向 1=YES / 2=NO). v1.4.94 daemon 简化为 int32, 客户端按 需要解释; 不引入 quote_common_enum 依赖.
事件合约方向 (1=YES / 2=NO)
contract_direction_label: Option<String>事件合约方向标签
contract_symbol_name: Option<String>事件合约名称
currency: Option<String>v1.4.97 J1.7 daemon-derived field (jackie 实战反馈):
Backend 不返 currency_int (per 9-agent finding: C++ + mobile NN proto
都无 currency 字段). Daemon 从 balance 字符串 (“余额: 3,929.13 USD”)
regex 提取 currency 字符串, 让客户端不用自己正则. 解析失败时 None.
已知值: HKD/USD/CNH/JPY/SGD/AUD/CAD/MYR/USDT (per
crates/futucli/src/cmd/account.rs:247-260 currency_int_to_str helper).
Implementations§
Source§impl CashLog
impl CashLog
Sourcepub fn log_id(&self) -> &str
pub fn log_id(&self) -> &str
Returns the value of log_id, or the default value if log_id is unset.
Sourcepub fn title(&self) -> &str
pub fn title(&self) -> &str
Returns the value of title, or the default value if title is unset.
Sourcepub fn label(&self) -> &str
pub fn label(&self) -> &str
Returns the value of label, or the default value if label is unset.
Sourcepub fn label_desc(&self) -> &str
pub fn label_desc(&self) -> &str
Returns the value of label_desc, or the default value if label_desc is unset.
Sourcepub fn created_time(&self) -> &str
pub fn created_time(&self) -> &str
Returns the value of created_time, or the default value if created_time is unset.
Sourcepub fn cash_change(&self) -> &str
pub fn cash_change(&self) -> &str
Returns the value of cash_change, or the default value if cash_change is unset.
Sourcepub fn balance(&self) -> &str
pub fn balance(&self) -> &str
Returns the value of balance, or the default value if balance is unset.
Sourcepub fn stock_name(&self) -> &str
pub fn stock_name(&self) -> &str
Returns the value of stock_name, or the default value if stock_name is unset.
Sourcepub fn icon_url(&self) -> &str
pub fn icon_url(&self) -> &str
Returns the value of icon_url, or the default value if icon_url is unset.
Sourcepub fn symbol_code(&self) -> &str
pub fn symbol_code(&self) -> &str
Returns the value of symbol_code, or the default value if symbol_code is unset.
Sourcepub fn symbol_name(&self) -> &str
pub fn symbol_name(&self) -> &str
Returns the value of symbol_name, or the default value if symbol_name is unset.
Sourcepub fn created_timestamp(&self) -> u32
pub fn created_timestamp(&self) -> u32
Returns the value of created_timestamp, or the default value if created_timestamp is unset.
Sourcepub fn stock_id(&self) -> u64
pub fn stock_id(&self) -> u64
Returns the value of stock_id, or the default value if stock_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 contract_direction(&self) -> i32
pub fn contract_direction(&self) -> i32
Returns the value of contract_direction, or the default value if contract_direction is unset.
Sourcepub fn contract_direction_label(&self) -> &str
pub fn contract_direction_label(&self) -> &str
Returns the value of contract_direction_label, or the default value if contract_direction_label is unset.
Sourcepub fn contract_symbol_name(&self) -> &str
pub fn contract_symbol_name(&self) -> &str
Returns the value of contract_symbol_name, or the default value if contract_symbol_name is unset.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CashLog
impl<'de> Deserialize<'de> for CashLog
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 CashLog
impl Message for CashLog
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.