#[repr(i32)]pub enum OptionRankIndicatorType {
Show 19 variants
Unknown = 0,
StockCategory = 1,
MarketCap = 2,
OwnerList = 3,
UnderlyingIv = 4,
UnderlyingHv = 5,
IvRank = 6,
IvPercentile = 7,
Iv = 8,
OptionType = 9,
LeftDays = 10,
InTheMoney = 11,
Volume = 12,
OpenInterest = 13,
Delta = 14,
Gamma = 15,
Theta = 16,
Vega = 17,
Rho = 18,
}Expand description
期权合约排行筛选因子类型
Variants§
Unknown = 0
未知
StockCategory = 1
标的级
【确切值】品类(StockCategory)
MarketCap = 2
【范围】市值
OwnerList = 3
【确切值】股票范围(securityList)
UnderlyingIv = 4
【范围】正股IV(%)
UnderlyingHv = 5
【范围】正股HV(%)
IvRank = 6
【范围】IV等级(%)
IvPercentile = 7
【范围】IV百分位数(%)
Iv = 8
期权级
【范围】隐含波动率(%)
OptionType = 9
【确切值】方向(Call/Put)
LeftDays = 10
【范围】距到期日
InTheMoney = 11
【确切值】价内/价外(0=价外,1=价内)
Volume = 12
【范围】成交量
OpenInterest = 13
【范围】持仓量
Delta = 14
【范围】Delta
Gamma = 15
【范围】Gamma
Theta = 16
【范围】Theta
Vega = 17
【范围】Vega
Rho = 18
【范围】Rho
Implementations§
Source§impl OptionRankIndicatorType
impl OptionRankIndicatorType
Sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true if value is a variant of OptionRankIndicatorType.
Sourcepub fn from_i32(value: i32) -> Option<OptionRankIndicatorType>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<OptionRankIndicatorType>
Use the TryFrom<i32> implementation instead
Converts an i32 to a OptionRankIndicatorType, or None if value is not a valid variant.
Source§impl OptionRankIndicatorType
impl OptionRankIndicatorType
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 OptionRankIndicatorType
impl Clone for OptionRankIndicatorType
Source§fn clone(&self) -> OptionRankIndicatorType
fn clone(&self) -> OptionRankIndicatorType
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 OptionRankIndicatorType
impl Debug for OptionRankIndicatorType
Source§impl Default for OptionRankIndicatorType
impl Default for OptionRankIndicatorType
Source§fn default() -> OptionRankIndicatorType
fn default() -> OptionRankIndicatorType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OptionRankIndicatorType
impl<'de> Deserialize<'de> for OptionRankIndicatorType
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<OptionRankIndicatorType> for i32
impl From<OptionRankIndicatorType> for i32
Source§fn from(value: OptionRankIndicatorType) -> i32
fn from(value: OptionRankIndicatorType) -> i32
Converts to this type from the input type.
Source§impl Hash for OptionRankIndicatorType
impl Hash for OptionRankIndicatorType
Source§impl Ord for OptionRankIndicatorType
impl Ord for OptionRankIndicatorType
Source§fn cmp(&self, other: &OptionRankIndicatorType) -> Ordering
fn cmp(&self, other: &OptionRankIndicatorType) -> 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 OptionRankIndicatorType
impl PartialEq for OptionRankIndicatorType
Source§impl PartialOrd for OptionRankIndicatorType
impl PartialOrd for OptionRankIndicatorType
Source§impl Serialize for OptionRankIndicatorType
impl Serialize for OptionRankIndicatorType
Source§impl TryFrom<i32> for OptionRankIndicatorType
impl TryFrom<i32> for OptionRankIndicatorType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<OptionRankIndicatorType, UnknownEnumValue>
fn try_from(value: i32) -> Result<OptionRankIndicatorType, UnknownEnumValue>
Performs the conversion.
impl Copy for OptionRankIndicatorType
impl Eq for OptionRankIndicatorType
impl StructuralPartialEq for OptionRankIndicatorType
Auto Trait Implementations§
impl Freeze for OptionRankIndicatorType
impl RefUnwindSafe for OptionRankIndicatorType
impl Send for OptionRankIndicatorType
impl Sync for OptionRankIndicatorType
impl Unpin for OptionRankIndicatorType
impl UnsafeUnpin for OptionRankIndicatorType
impl UnwindSafe for OptionRankIndicatorType
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