Skip to main content

CashLog

Struct CashLog 

Source
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

Source

pub fn log_id(&self) -> &str

Returns the value of log_id, or the default value if log_id is unset.

Source

pub fn title(&self) -> &str

Returns the value of title, or the default value if title is unset.

Source

pub fn label(&self) -> &str

Returns the value of label, or the default value if label is unset.

Source

pub fn label_desc(&self) -> &str

Returns the value of label_desc, or the default value if label_desc is unset.

Source

pub fn created_time(&self) -> &str

Returns the value of created_time, or the default value if created_time is unset.

Source

pub fn cash_change(&self) -> &str

Returns the value of cash_change, or the default value if cash_change is unset.

Source

pub fn balance(&self) -> &str

Returns the value of balance, or the default value if balance is unset.

Source

pub fn stock_name(&self) -> &str

Returns the value of stock_name, or the default value if stock_name is unset.

Source

pub fn icon_url(&self) -> &str

Returns the value of icon_url, or the default value if icon_url is unset.

Source

pub fn symbol_code(&self) -> &str

Returns the value of symbol_code, or the default value if symbol_code is unset.

Source

pub fn symbol_name(&self) -> &str

Returns the value of symbol_name, or the default value if symbol_name is unset.

Source

pub fn created_timestamp(&self) -> u32

Returns the value of created_timestamp, or the default value if created_timestamp is unset.

Source

pub fn stock_id(&self) -> u64

Returns the value of stock_id, or the default value if stock_id is unset.

Source

pub fn biz_type_id(&self) -> u32

Returns the value of biz_type_id, or the default value if biz_type_id is unset.

Source

pub fn contract_direction(&self) -> i32

Returns the value of contract_direction, or the default value if contract_direction is unset.

Source

pub fn contract_direction_label(&self) -> &str

Returns the value of contract_direction_label, or the default value if contract_direction_label is unset.

Source

pub fn contract_symbol_name(&self) -> &str

Returns the value of contract_symbol_name, or the default value if contract_symbol_name is unset.

Source

pub fn currency(&self) -> &str

Returns the value of currency, or the default value if currency is unset.

Trait Implementations§

Source§

impl Clone for CashLog

Source§

fn clone(&self) -> CashLog

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CashLog

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CashLog

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for CashLog

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Message for CashLog

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

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,

Encodes the message to a newly allocated buffer.
Source§

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,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

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,

Decodes a length-delimited instance of the message from the buffer.
Source§

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 more
Source§

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 CashLog

Source§

fn eq(&self, other: &CashLog) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for CashLog

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for CashLog

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,