#[repr(i32)]pub enum SecurityType {
Unknown = 0,
Common = 1,
Option = 2,
Fund = 3,
Futures = 4,
Bond = 5,
Crypto = 6,
Multileg = 7,
Forex = 8,
StructuredNote = 9,
}Expand description
复用证券
Variants§
Unknown = 0
未知类型
Common = 1
正股、窝轮、ETF等
Option = 2
期权(美股期权、港股期权)
Fund = 3
富途的基金(如现金宝)
Futures = 4
期货
Bond = 5
债券
Crypto = 6
数字币订单
Multileg = 7
多腿订单, 下多腿订单的时候一定要填这个值
Forex = 8
外汇
StructuredNote = 9
结构化票据
Implementations§
Source§impl SecurityType
impl SecurityType
Source§impl SecurityType
impl SecurityType
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 SecurityType
impl Clone for SecurityType
Source§fn clone(&self) -> SecurityType
fn clone(&self) -> SecurityType
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 SecurityType
impl Debug for SecurityType
Source§impl Default for SecurityType
impl Default for SecurityType
Source§fn default() -> SecurityType
fn default() -> SecurityType
Returns the “default value” for a type. Read more
Source§impl From<SecurityType> for i32
impl From<SecurityType> for i32
Source§fn from(value: SecurityType) -> i32
fn from(value: SecurityType) -> i32
Converts to this type from the input type.
Source§impl Hash for SecurityType
impl Hash for SecurityType
Source§impl Ord for SecurityType
impl Ord for SecurityType
Source§fn cmp(&self, other: &SecurityType) -> Ordering
fn cmp(&self, other: &SecurityType) -> 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 SecurityType
impl PartialEq for SecurityType
Source§impl PartialOrd for SecurityType
impl PartialOrd for SecurityType
Source§impl TryFrom<i32> for SecurityType
impl TryFrom<i32> for SecurityType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<SecurityType, UnknownEnumValue>
fn try_from(value: i32) -> Result<SecurityType, UnknownEnumValue>
Performs the conversion.
impl Copy for SecurityType
impl Eq for SecurityType
impl StructuralPartialEq for SecurityType
Auto Trait Implementations§
impl Freeze for SecurityType
impl RefUnwindSafe for SecurityType
impl Send for SecurityType
impl Sync for SecurityType
impl Unpin for SecurityType
impl UnsafeUnpin for SecurityType
impl UnwindSafe for SecurityType
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.