pub struct HkccBcanExtras {
pub hkex_bcan_client_type: Option<u32>,
pub is_mainland_trader: Option<bool>,
}Fields§
§hkex_bcan_client_type: Option<u32>港交所bcan的客户类型(从账户侧取),当前用于判断A股通bcan是否为个人/企业,枚举同http://fservice.server.com/repository/project/26591/proto-space/5200/a_conn_bcan_service.proto里的message CustomerBCAN的client_type字段
is_mainland_trader: Option<bool>true为内地投资者,当前用于判断A股通bcan是否为内地投资者,同http://fservice.server.com/repository/project/26591/proto-space/5200/a_conn_bcan_service.proto里的message CustomerBCAN的is_mainland_trader字段
Implementations§
Source§impl HkccBcanExtras
impl HkccBcanExtras
Sourcepub fn hkex_bcan_client_type(&self) -> u32
pub fn hkex_bcan_client_type(&self) -> u32
Returns the value of hkex_bcan_client_type, or the default value if hkex_bcan_client_type is unset.
Sourcepub fn is_mainland_trader(&self) -> bool
pub fn is_mainland_trader(&self) -> bool
Returns the value of is_mainland_trader, or the default value if is_mainland_trader is unset.
Trait Implementations§
Source§impl Clone for HkccBcanExtras
impl Clone for HkccBcanExtras
Source§fn clone(&self) -> HkccBcanExtras
fn clone(&self) -> HkccBcanExtras
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HkccBcanExtras
impl Debug for HkccBcanExtras
Source§impl Default for HkccBcanExtras
impl Default for HkccBcanExtras
Source§impl Hash for HkccBcanExtras
impl Hash for HkccBcanExtras
Source§impl Message for HkccBcanExtras
impl Message for HkccBcanExtras
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.Source§impl PartialEq for HkccBcanExtras
impl PartialEq for HkccBcanExtras
impl Copy for HkccBcanExtras
impl Eq for HkccBcanExtras
impl StructuralPartialEq for HkccBcanExtras
Auto Trait Implementations§
impl Freeze for HkccBcanExtras
impl RefUnwindSafe for HkccBcanExtras
impl Send for HkccBcanExtras
impl Sync for HkccBcanExtras
impl Unpin for HkccBcanExtras
impl UnsafeUnpin for HkccBcanExtras
impl UnwindSafe for HkccBcanExtras
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.