pub struct FundAcc {
pub fund_acc_id: Option<AccBaseInfo>,
pub association_acc_id: Option<AccBaseInfo>,
pub trade_disable: Option<bool>,
pub self_trade_disable: Option<bool>,
}Expand description
单币种证券账户(业务账户)和单币种基金账户(业务账户)绑定关系(1:1绑定,只有富途HK有),并且只有两种绑定关系: 港股账户——港元基金 美股账户——美元基金 2008/2282接口都有用到,但是取值不一样,例如2008接口港股账户market_id取0,而2282接口则取1(和后端保持一致) 2282接口这里的取值都是和后端保持一致的 2008接口的取值有一些历史问题,不在这里说明,感兴趣的看一下介绍文档
Fields§
§fund_acc_id: Option<AccBaseInfo>基金账户
association_acc_id: Option<AccBaseInfo>基金关联账户
trade_disable: Option<bool>后台禁止交易开关(目前都为0,没有修改该值的接口)
self_trade_disable: Option<bool>用户禁止交易开关(目前都为0,没有修改该值的接口)
Implementations§
Source§impl FundAcc
impl FundAcc
Sourcepub fn trade_disable(&self) -> bool
pub fn trade_disable(&self) -> bool
Returns the value of trade_disable, or the default value if trade_disable is unset.
Sourcepub fn self_trade_disable(&self) -> bool
pub fn self_trade_disable(&self) -> bool
Returns the value of self_trade_disable, or the default value if self_trade_disable is unset.
Trait Implementations§
Source§impl Message for FundAcc
impl Message for FundAcc
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
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,
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,
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,
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 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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl Eq for FundAcc
impl StructuralPartialEq for FundAcc
Auto Trait Implementations§
impl Freeze for FundAcc
impl RefUnwindSafe for FundAcc
impl Send for FundAcc
impl Sync for FundAcc
impl Unpin for FundAcc
impl UnsafeUnpin for FundAcc
impl UnwindSafe for FundAcc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.