#[repr(i32)]pub enum ZeroDteContractIndicatorType {
Show 16 variants
Unknown = 0,
OptionType = 1,
Volume = 2,
OpenInterest = 3,
Iv = 4,
Delta = 5,
Gamma = 6,
Theta = 7,
Vega = 8,
Rho = 9,
Price = 10,
ChangeRate = 11,
BreakEvenPoint = 12,
ToBep = 13,
BuyProfitProbability = 14,
SellProfitProbability = 15,
}Expand description
末日期权合约筛选因子类型
Variants§
Unknown = 0
OptionType = 1
【确切值】期权方向(Qot_Common.OptionType: 1=Call, 2=Put)
Volume = 2
【范围】成交量
OpenInterest = 3
【范围】未平仓数
Iv = 4
【范围】隐含波动率(%)
Delta = 5
【范围】Delta
Gamma = 6
【范围】Gamma
Theta = 7
【范围】Theta
Vega = 8
【范围】Vega
Rho = 9
【范围】Rho
Price = 10
【范围】最新价
ChangeRate = 11
【范围】涨跌幅(%)
BreakEvenPoint = 12
【范围】盈亏平衡点
ToBep = 13
【范围】到盈亏平衡点(%)
BuyProfitProbability = 14
【范围】买入盈利概率(%)
SellProfitProbability = 15
【范围】卖出盈利概率(%)
Implementations§
Source§impl ZeroDteContractIndicatorType
impl ZeroDteContractIndicatorType
Sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true if value is a variant of ZeroDteContractIndicatorType.
Sourcepub fn from_i32(value: i32) -> Option<ZeroDteContractIndicatorType>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ZeroDteContractIndicatorType>
Use the TryFrom<i32> implementation instead
Converts an i32 to a ZeroDteContractIndicatorType, or None if value is not a valid variant.
Source§impl ZeroDteContractIndicatorType
impl ZeroDteContractIndicatorType
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 ZeroDteContractIndicatorType
impl Clone for ZeroDteContractIndicatorType
Source§fn clone(&self) -> ZeroDteContractIndicatorType
fn clone(&self) -> ZeroDteContractIndicatorType
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 ZeroDteContractIndicatorType
impl Debug for ZeroDteContractIndicatorType
Source§impl Default for ZeroDteContractIndicatorType
impl Default for ZeroDteContractIndicatorType
Source§fn default() -> ZeroDteContractIndicatorType
fn default() -> ZeroDteContractIndicatorType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ZeroDteContractIndicatorType
impl<'de> Deserialize<'de> for ZeroDteContractIndicatorType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ZeroDteContractIndicatorType> for i32
impl From<ZeroDteContractIndicatorType> for i32
Source§fn from(value: ZeroDteContractIndicatorType) -> i32
fn from(value: ZeroDteContractIndicatorType) -> i32
Converts to this type from the input type.
Source§impl Hash for ZeroDteContractIndicatorType
impl Hash for ZeroDteContractIndicatorType
Source§impl Ord for ZeroDteContractIndicatorType
impl Ord for ZeroDteContractIndicatorType
Source§fn cmp(&self, other: &ZeroDteContractIndicatorType) -> Ordering
fn cmp(&self, other: &ZeroDteContractIndicatorType) -> 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 ZeroDteContractIndicatorType
impl PartialEq for ZeroDteContractIndicatorType
Source§fn eq(&self, other: &ZeroDteContractIndicatorType) -> bool
fn eq(&self, other: &ZeroDteContractIndicatorType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ZeroDteContractIndicatorType
impl PartialOrd for ZeroDteContractIndicatorType
Source§impl TryFrom<i32> for ZeroDteContractIndicatorType
impl TryFrom<i32> for ZeroDteContractIndicatorType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(
value: i32,
) -> Result<ZeroDteContractIndicatorType, UnknownEnumValue>
fn try_from( value: i32, ) -> Result<ZeroDteContractIndicatorType, UnknownEnumValue>
Performs the conversion.
impl Copy for ZeroDteContractIndicatorType
impl Eq for ZeroDteContractIndicatorType
impl StructuralPartialEq for ZeroDteContractIndicatorType
Auto Trait Implementations§
impl Freeze for ZeroDteContractIndicatorType
impl RefUnwindSafe for ZeroDteContractIndicatorType
impl Send for ZeroDteContractIndicatorType
impl Sync for ZeroDteContractIndicatorType
impl Unpin for ZeroDteContractIndicatorType
impl UnsafeUnpin for ZeroDteContractIndicatorType
impl UnwindSafe for ZeroDteContractIndicatorType
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