pub struct OrderSup {
pub order_new_reason: Option<u32>,
pub ack_new_from_exchange: Option<bool>,
pub odr_enable_ba_trade: Option<bool>,
pub time_in_force: Option<u32>,
pub hk_odr_enable_ba_trade: Option<u32>,
pub trail_type: Option<u32>,
pub trail_percent: Option<String>,
pub trail_price: Option<String>,
pub order_trade_time_type: Option<u32>,
pub clt_view_slice_type: Option<u32>,
pub odr_is_complet: Option<u32>,
}Fields§
§order_new_reason: Option<u32>取值参考 OrderNewReason;已废弃!!
ack_new_from_exchange: Option<bool>表示该订单是否收到了交易所的下单响应;已废弃!!
odr_enable_ba_trade: Option<bool>订单允许盘前盘后生效,美股适用
time_in_force: Option<u32>订单期限,取值参考OrderTimeInForce
hk_odr_enable_ba_trade: Option<u32>订单盘前竞价有效设置,港股适用,取值参考EnableBATradeType
trail_type: Option<u32>跟踪止损的跟踪标的,取值参考TrailType
trail_percent: Option<String>跟踪止损的跟踪额百分比
trail_price: Option<String>跟踪止损的跟踪额
order_trade_time_type: Option<u32>订单交易时段类型,参考OrderTradeTimeType
clt_view_slice_type: Option<u32>客户端拆分标准类型,参考 CltViewSliceType
odr_is_complet: Option<u32>订单是否完结, 参考OdrCompletType
Implementations§
Source§impl OrderSup
impl OrderSup
Sourcepub fn order_new_reason(&self) -> u32
pub fn order_new_reason(&self) -> u32
Returns the value of order_new_reason, or the default value if order_new_reason is unset.
Sourcepub fn ack_new_from_exchange(&self) -> bool
pub fn ack_new_from_exchange(&self) -> bool
Returns the value of ack_new_from_exchange, or the default value if ack_new_from_exchange is unset.
Sourcepub fn odr_enable_ba_trade(&self) -> bool
pub fn odr_enable_ba_trade(&self) -> bool
Returns the value of odr_enable_ba_trade, or the default value if odr_enable_ba_trade is unset.
Sourcepub fn time_in_force(&self) -> u32
pub fn time_in_force(&self) -> u32
Returns the value of time_in_force, or the default value if time_in_force is unset.
Sourcepub fn hk_odr_enable_ba_trade(&self) -> u32
pub fn hk_odr_enable_ba_trade(&self) -> u32
Returns the value of hk_odr_enable_ba_trade, or the default value if hk_odr_enable_ba_trade is unset.
Sourcepub fn trail_type(&self) -> u32
pub fn trail_type(&self) -> u32
Returns the value of trail_type, or the default value if trail_type is unset.
Sourcepub fn trail_percent(&self) -> &str
pub fn trail_percent(&self) -> &str
Returns the value of trail_percent, or the default value if trail_percent is unset.
Sourcepub fn trail_price(&self) -> &str
pub fn trail_price(&self) -> &str
Returns the value of trail_price, or the default value if trail_price 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 clt_view_slice_type(&self) -> u32
pub fn clt_view_slice_type(&self) -> u32
Returns the value of clt_view_slice_type, or the default value if clt_view_slice_type is unset.
Sourcepub fn odr_is_complet(&self) -> u32
pub fn odr_is_complet(&self) -> u32
Returns the value of odr_is_complet, or the default value if odr_is_complet is unset.
Trait Implementations§
Source§impl Message for OrderSup
impl Message for OrderSup
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 OrderSup
impl StructuralPartialEq for OrderSup
Auto Trait Implementations§
impl Freeze for OrderSup
impl RefUnwindSafe for OrderSup
impl Send for OrderSup
impl Sync for OrderSup
impl Unpin for OrderSup
impl UnsafeUnpin for OrderSup
impl UnwindSafe for OrderSup
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.