Skip to main content

CashLog

pub struct CashLog {
Show 16 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 futu_symbol: Option<String>, pub symbol_name: Option<String>, pub created_timestamp: Option<u32>, pub label_list: Vec<Label>, pub stock_id: Option<u64>, pub process_date: Option<u32>, pub currency: Option<String>,
}

Fields§

§log_id: Option<String>

流水id,不展示,给下面get_cash_detail接口使用

§title: Option<String>

标题

§label: Option<String>

标签,有则展示。已废弃,请使用label_list

§label_desc: Option<String>

标签说明,跟标签同时出现。已废弃,请使用label_list

§created_time: Option<String>

时间,字符串,直接展示

§cash_change: Option<String>

变动量,字符串数值

§balance: Option<String>

余额,字符串数值(注意,可能没有balance,比如历史流水)

§stock_name: Option<String>

股票代码和名称

§icon_url: Option<String>

icon链接

§futu_symbol: Option<String>

股票代码,futu_symbol

§symbol_name: Option<String>

股票名称

§created_timestamp: Option<u32>

时间,10位时间戳

§label_list: Vec<Label>

标签列表,目前最多返回两个

§stock_id: Option<u64>

只用于取行情标签,其他场景不能使用。取不到stock id的返回0

§process_date: Option<u32>

可能取不到stock id,部分代码复用的,stock id为最新代码的。过期期权取不到stock id

流水变更所在日期

§currency: Option<String>

币种,如USD、HKD

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 futu_symbol(&self) -> &str

Returns the value of futu_symbol, or the default value if futu_symbol 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 process_date(&self) -> u32

Returns the value of process_date, or the default value if process_date 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 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 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