pub struct JpInfo {
pub withholding: Option<u32>,
pub nisa_allow_buy: Option<bool>,
}Expand description
JP特定信息
Fields§
§withholding: Option<u32>withholding 是否预扣税,取值参考Withholding枚举 特定口座为opened时,取值为1或2;其他情况该字段无意义,不会设置该字段,故为nil
nisa_allow_buy: Option<bool>nisa_allow_buy nisa账户是否允许买入;如买入截止年为2023年,则2024年1月1日前可买;如买入开始年为2023年,2022年12月29日(提前3天)可买;非nisa账户为nil,即未设置. 逻辑参见客户端技术方案文档 https://futu.feishu.cn/docx/Lo5rdldcroOHOqxdAzDcwRjJn3d
Implementations§
Source§impl JpInfo
impl JpInfo
Sourcepub fn withholding(&self) -> u32
pub fn withholding(&self) -> u32
Returns the value of withholding, or the default value if withholding is unset.
Sourcepub fn nisa_allow_buy(&self) -> bool
pub fn nisa_allow_buy(&self) -> bool
Returns the value of nisa_allow_buy, or the default value if nisa_allow_buy is unset.
Trait Implementations§
Source§impl Message for JpInfo
impl Message for JpInfo
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 Copy for JpInfo
impl Eq for JpInfo
impl StructuralPartialEq for JpInfo
Auto Trait Implementations§
impl Freeze for JpInfo
impl RefUnwindSafe for JpInfo
impl Send for JpInfo
impl Sync for JpInfo
impl Unpin for JpInfo
impl UnsafeUnpin for JpInfo
impl UnwindSafe for JpInfo
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.