#[repr(i32)]pub enum BitProbOrderBook {
BitProbOrderBook40lNoId = 0,
AllNoId = 1,
AllWithId = 2,
SimpleUtp = 4,
SimpleBasic = 8,
SimpleOvernight = 16,
}Expand description
订阅位属性值之一(附加值)- 摆盘 SBIT_ORDER_BOOK
Variants§
BitProbOrderBook40lNoId = 0
以下属性值仅港股sf摆盘需要
40档摆盘-无orderid列表(缺省值)
AllNoId = 1
全部档摆盘-无orderid列表
AllWithId = 2
全部档摆盘+orderid列表
SimpleUtp = 4
以下属性仅美股需要,同样适用于订阅位SBIT_ORDER_BOOK_SIMPLE 如果同时订阅utp和basic,发送prob=4|8,即(UTP | BASIC) 推送包也会通过带上prob=4或8,表示为utp或basic摆盘
utp bbo
SimpleBasic = 8
basic bbo
SimpleOvernight = 16
OVRENIGHT bbo
Implementations§
Source§impl BitProbOrderBook
impl BitProbOrderBook
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for BitProbOrderBook
impl Clone for BitProbOrderBook
Source§fn clone(&self) -> BitProbOrderBook
fn clone(&self) -> BitProbOrderBook
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 BitProbOrderBook
impl Debug for BitProbOrderBook
Source§impl Default for BitProbOrderBook
impl Default for BitProbOrderBook
Source§fn default() -> BitProbOrderBook
fn default() -> BitProbOrderBook
Returns the “default value” for a type. Read more
Source§impl From<BitProbOrderBook> for i32
impl From<BitProbOrderBook> for i32
Source§fn from(value: BitProbOrderBook) -> i32
fn from(value: BitProbOrderBook) -> i32
Converts to this type from the input type.
Source§impl Hash for BitProbOrderBook
impl Hash for BitProbOrderBook
Source§impl Ord for BitProbOrderBook
impl Ord for BitProbOrderBook
Source§fn cmp(&self, other: &BitProbOrderBook) -> Ordering
fn cmp(&self, other: &BitProbOrderBook) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BitProbOrderBook
impl PartialEq for BitProbOrderBook
Source§impl PartialOrd for BitProbOrderBook
impl PartialOrd for BitProbOrderBook
Source§impl TryFrom<i32> for BitProbOrderBook
impl TryFrom<i32> for BitProbOrderBook
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<BitProbOrderBook, UnknownEnumValue>
fn try_from(value: i32) -> Result<BitProbOrderBook, UnknownEnumValue>
Performs the conversion.
impl Copy for BitProbOrderBook
impl Eq for BitProbOrderBook
impl StructuralPartialEq for BitProbOrderBook
Auto Trait Implementations§
impl Freeze for BitProbOrderBook
impl RefUnwindSafe for BitProbOrderBook
impl Send for BitProbOrderBook
impl Sync for BitProbOrderBook
impl Unpin for BitProbOrderBook
impl UnsafeUnpin for BitProbOrderBook
impl UnwindSafe for BitProbOrderBook
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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.