pub struct OrderPreMarginV2Req {Show 13 fields
pub nn_uid: Option<u64>,
pub account_id: Option<u64>,
pub stock_info: Option<ClientStockInfo>,
pub order_side: Option<u32>,
pub quantity: Option<String>,
pub price: Option<String>,
pub order_type: Option<u32>,
pub order_id: Option<String>,
pub order_trade_time_type: Option<u32>,
pub check_risk_increase: Option<bool>,
pub sub_account_id: Option<u64>,
pub cash_order_qty: Option<String>,
pub position_id: Option<String>,
}Fields§
§nn_uid: Option<u64>§account_id: Option<u64>§stock_info: Option<ClientStockInfo>§order_side: Option<u32>§quantity: Option<String>§price: Option<String>§order_type: Option<u32>§order_id: Option<String>§order_trade_time_type: Option<u32>§check_risk_increase: Option<bool>§sub_account_id: Option<u64>§cash_order_qty: Option<String>§position_id: Option<String>Implementations§
Source§impl OrderPreMarginV2Req
impl OrderPreMarginV2Req
Sourcepub fn nn_uid(&self) -> u64
pub fn nn_uid(&self) -> u64
Returns the value of nn_uid, or the default value if nn_uid is unset.
Sourcepub fn account_id(&self) -> u64
pub fn account_id(&self) -> u64
Returns the value of account_id, or the default value if account_id is unset.
Sourcepub fn order_side(&self) -> u32
pub fn order_side(&self) -> u32
Returns the value of order_side, or the default value if order_side is unset.
Sourcepub fn quantity(&self) -> &str
pub fn quantity(&self) -> &str
Returns the value of quantity, or the default value if quantity is unset.
Sourcepub fn price(&self) -> &str
pub fn price(&self) -> &str
Returns the value of price, or the default value if price is unset.
Sourcepub fn order_type(&self) -> u32
pub fn order_type(&self) -> u32
Returns the value of order_type, or the default value if order_type is unset.
Sourcepub fn order_id(&self) -> &str
pub fn order_id(&self) -> &str
Returns the value of order_id, or the default value if order_id is unset.
Sourcepub fn order_trade_time_type(&self) -> u32
pub fn order_trade_time_type(&self) -> u32
Returns the value of order_trade_time_type, or the default value if order_trade_time_type is unset.
Sourcepub fn check_risk_increase(&self) -> bool
pub fn check_risk_increase(&self) -> bool
Returns the value of check_risk_increase, or the default value if check_risk_increase is unset.
Sourcepub fn sub_account_id(&self) -> u64
pub fn sub_account_id(&self) -> u64
Returns the value of sub_account_id, or the default value if sub_account_id is unset.
Sourcepub fn cash_order_qty(&self) -> &str
pub fn cash_order_qty(&self) -> &str
Returns the value of cash_order_qty, or the default value if cash_order_qty is unset.
Sourcepub fn position_id(&self) -> &str
pub fn position_id(&self) -> &str
Returns the value of position_id, or the default value if position_id is unset.
Trait Implementations§
Source§impl Clone for OrderPreMarginV2Req
impl Clone for OrderPreMarginV2Req
Source§fn clone(&self) -> OrderPreMarginV2Req
fn clone(&self) -> OrderPreMarginV2Req
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OrderPreMarginV2Req
impl Debug for OrderPreMarginV2Req
Source§impl Default for OrderPreMarginV2Req
impl Default for OrderPreMarginV2Req
Source§impl Hash for OrderPreMarginV2Req
impl Hash for OrderPreMarginV2Req
Source§impl Message for OrderPreMarginV2Req
impl Message for OrderPreMarginV2Req
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.Source§impl PartialEq for OrderPreMarginV2Req
impl PartialEq for OrderPreMarginV2Req
impl Eq for OrderPreMarginV2Req
impl StructuralPartialEq for OrderPreMarginV2Req
Auto Trait Implementations§
impl Freeze for OrderPreMarginV2Req
impl RefUnwindSafe for OrderPreMarginV2Req
impl Send for OrderPreMarginV2Req
impl Sync for OrderPreMarginV2Req
impl Unpin for OrderPreMarginV2Req
impl UnsafeUnpin for OrderPreMarginV2Req
impl UnwindSafe for OrderPreMarginV2Req
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.