pub struct ResponseDataOk {
pub next_page_flag: i32,
pub trd_pswd_mode: i32,
pub acc_list: Vec<TrdAcc>,
pub version: Option<u64>,
pub trade_pswd_upgrade_prompt: Option<bool>,
pub fund_acc_list: Vec<FundAcc>,
}Expand description
// CMD2008 响应为“ok“时的数据字段
Fields§
§next_page_flag: i32如果是-1则表示拉取结束
trd_pswd_mode: i32交易密碼模式
acc_list: Vec<TrdAcc>交易账户列表
version: Option<u64>数据版本。如果数据有变化则版本也会变化,客户端可用此数值对账户列表做优化处理
trade_pswd_upgrade_prompt: Option<bool>是否需要提示客户升级到6位数字交易密码
fund_acc_list: Vec<FundAcc>基金账户列表
Implementations§
Source§impl ResponseDataOk
impl ResponseDataOk
Sourcepub fn trd_pswd_mode(&self) -> TrdPswdMode
pub fn trd_pswd_mode(&self) -> TrdPswdMode
Returns the enum value of trd_pswd_mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_trd_pswd_mode(&mut self, value: TrdPswdMode)
pub fn set_trd_pswd_mode(&mut self, value: TrdPswdMode)
Sets trd_pswd_mode to the provided enum value.
Sourcepub fn version(&self) -> u64
pub fn version(&self) -> u64
Returns the value of version, or the default value if version is unset.
Sourcepub fn trade_pswd_upgrade_prompt(&self) -> bool
pub fn trade_pswd_upgrade_prompt(&self) -> bool
Returns the value of trade_pswd_upgrade_prompt, or the default value if trade_pswd_upgrade_prompt is unset.
Trait Implementations§
Source§impl Clone for ResponseDataOk
impl Clone for ResponseDataOk
Source§fn clone(&self) -> ResponseDataOk
fn clone(&self) -> ResponseDataOk
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 ResponseDataOk
impl Debug for ResponseDataOk
Source§impl Default for ResponseDataOk
impl Default for ResponseDataOk
Source§impl Message for ResponseDataOk
impl Message for ResponseDataOk
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 ResponseDataOk
impl PartialEq for ResponseDataOk
impl StructuralPartialEq for ResponseDataOk
Auto Trait Implementations§
impl Freeze for ResponseDataOk
impl RefUnwindSafe for ResponseDataOk
impl Send for ResponseDataOk
impl Sync for ResponseDataOk
impl Unpin for ResponseDataOk
impl UnsafeUnpin for ResponseDataOk
impl UnwindSafe for ResponseDataOk
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