CachedTrdAcc

Struct CachedTrdAcc 

Source
pub struct CachedTrdAcc {
Show 22 fields pub acc_id: u64, pub trd_env: i32, pub trd_market_auth_list: Vec<i32>, pub acc_type: Option<i32>, pub card_num: Option<String>, pub security_firm: Option<i32>, pub sim_acc_type: Option<i32>, pub uni_card_num: Option<String>, pub acc_status: Option<i32>, pub acc_role: Option<i32>, pub jp_acc_type: Vec<i32>, pub owner_uid: Option<u64>, pub opr_uid: Option<u64>, pub mixed_state: Option<i32>, pub ira_type: Option<i32>, pub grant_state: Option<i32>, pub kouza_type: Option<i32>, pub trd_market: Option<i32>, pub association_acc_id: Option<u64>, pub acc_flag: Option<i32>, pub order_index: usize, pub sort_key: u64,
}
Expand description

缓存的账户信息

Fields§

§acc_id: u64§trd_env: i32§trd_market_auth_list: Vec<i32>§acc_type: Option<i32>§card_num: Option<String>§security_firm: Option<i32>§sim_acc_type: Option<i32>§uni_card_num: Option<String>§acc_status: Option<i32>§acc_role: Option<i32>§jp_acc_type: Vec<i32>§owner_uid: Option<u64>

账户所有者 UID

§opr_uid: Option<u64>

账户操作者 UID

§mixed_state: Option<i32>

混合状态 (C++ enAccState / MixedState)

§ira_type: Option<i32>

IRA 类型 (CA: TFSA=1, RRSP=2, SRRSP=3)

§grant_state: Option<i32>

授权状态 (GrantState)

§kouza_type: Option<i32>

口座类型 (JP: Cash=1, Margin=2, Derivative=3)

§trd_market: Option<i32>

交易市场 (Account.market, 单个值)

§association_acc_id: Option<u64>

关联账户 ID (基金账户绑定)

§acc_flag: Option<i32>

综合账户子账户标志 (0=非子账户)

§order_index: usize

原始顺序索引 (用于保持后端返回的自然顺序)

§sort_key: u64

C++ 排序 key: (BrokerID << 48) | (TrdMkt << 32) | IntraAccID

Trait Implementations§

Source§

impl Clone for CachedTrdAcc

Source§

fn clone(&self) -> CachedTrdAcc

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 CachedTrdAcc

Source§

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

Formats the value using the given formatter. Read more

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.

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.

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.