pub struct BondInfo {
pub currency: Option<u32>,
pub billing_account: Option<u64>,
pub entry_account: Option<u64>,
pub billing_market: Option<u32>,
pub entry_market: Option<u32>,
pub billing_settle_date: Option<u64>,
pub entry_settle_date: Option<u64>,
pub transaction_date: Option<u64>,
pub exchange_code: Option<String>,
pub bond_ext_info: Option<Vec<u8>>,
}Fields§
§currency: Option<u32>§billing_account: Option<u64>出账账户ID
entry_account: Option<u64>入账账户ID
billing_market: Option<u32>§entry_market: Option<u32>§billing_settle_date: Option<u64>出账结算日
entry_settle_date: Option<u64>入账结算日
transaction_date: Option<u64>当前交易日
exchange_code: Option<String>交易所代码
bond_ext_info: Option<Vec<u8>>BondExtInfo 字段序列化信息。目前用于区分是否使用融资
Implementations§
Source§impl BondInfo
impl BondInfo
Sourcepub fn currency(&self) -> u32
pub fn currency(&self) -> u32
Returns the value of currency, or the default value if currency is unset.
Sourcepub fn billing_account(&self) -> u64
pub fn billing_account(&self) -> u64
Returns the value of billing_account, or the default value if billing_account is unset.
Sourcepub fn entry_account(&self) -> u64
pub fn entry_account(&self) -> u64
Returns the value of entry_account, or the default value if entry_account is unset.
Sourcepub fn billing_market(&self) -> u32
pub fn billing_market(&self) -> u32
Returns the value of billing_market, or the default value if billing_market is unset.
Sourcepub fn entry_market(&self) -> u32
pub fn entry_market(&self) -> u32
Returns the value of entry_market, or the default value if entry_market is unset.
Sourcepub fn billing_settle_date(&self) -> u64
pub fn billing_settle_date(&self) -> u64
Returns the value of billing_settle_date, or the default value if billing_settle_date is unset.
Sourcepub fn entry_settle_date(&self) -> u64
pub fn entry_settle_date(&self) -> u64
Returns the value of entry_settle_date, or the default value if entry_settle_date is unset.
Sourcepub fn transaction_date(&self) -> u64
pub fn transaction_date(&self) -> u64
Returns the value of transaction_date, or the default value if transaction_date is unset.
Sourcepub fn exchange_code(&self) -> &str
pub fn exchange_code(&self) -> &str
Returns the value of exchange_code, or the default value if exchange_code is unset.
Sourcepub fn bond_ext_info(&self) -> &[u8] ⓘ
pub fn bond_ext_info(&self) -> &[u8] ⓘ
Returns the value of bond_ext_info, or the default value if bond_ext_info is unset.
Trait Implementations§
Source§impl Message for BondInfo
impl Message for BondInfo
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self.impl Eq for BondInfo
impl StructuralPartialEq for BondInfo
Auto Trait Implementations§
impl Freeze for BondInfo
impl RefUnwindSafe for BondInfo
impl Send for BondInfo
impl Sync for BondInfo
impl Unpin for BondInfo
impl UnsafeUnpin for BondInfo
impl UnwindSafe for BondInfo
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
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
§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
§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
key and return true if they are equal.