#[repr(i32)]pub enum ZeroDteIndicatorType {
Unknown = 0,
OwnerList = 1,
HasEarningsThisWeek = 2,
Volume = 3,
OpenInterest = 4,
Iv = 5,
Hv = 6,
IvRank = 7,
IvPercentile = 8,
Price = 9,
ChangeRate = 10,
}Expand description
末日期权标的筛选因子类型
Variants§
Unknown = 0
OwnerList = 1
【确切值】自选股列表(securityList)
HasEarningsThisWeek = 2
【确切值】本周是否有财报(valueList: 0=不限, 1=有, 2=无)
Volume = 3
【范围】期权总成交量
OpenInterest = 4
【范围】期权总持仓量
Iv = 5
【范围】隐含波动率(%)
Hv = 6
【范围】历史波动率(%)
IvRank = 7
【范围】IV等级(%)
IvPercentile = 8
【范围】IV百分位数(%)
Price = 9
【范围】最新价
ChangeRate = 10
【范围】涨跌幅(%)
Implementations§
Source§impl ZeroDteIndicatorType
impl ZeroDteIndicatorType
Sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true if value is a variant of ZeroDteIndicatorType.
Sourcepub fn from_i32(value: i32) -> Option<ZeroDteIndicatorType>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ZeroDteIndicatorType>
Use the TryFrom<i32> implementation instead
Converts an i32 to a ZeroDteIndicatorType, or None if value is not a valid variant.
Source§impl ZeroDteIndicatorType
impl ZeroDteIndicatorType
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 ZeroDteIndicatorType
impl Clone for ZeroDteIndicatorType
Source§fn clone(&self) -> ZeroDteIndicatorType
fn clone(&self) -> ZeroDteIndicatorType
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 ZeroDteIndicatorType
impl Debug for ZeroDteIndicatorType
Source§impl Default for ZeroDteIndicatorType
impl Default for ZeroDteIndicatorType
Source§fn default() -> ZeroDteIndicatorType
fn default() -> ZeroDteIndicatorType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ZeroDteIndicatorType
impl<'de> Deserialize<'de> for ZeroDteIndicatorType
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<ZeroDteIndicatorType> for i32
impl From<ZeroDteIndicatorType> for i32
Source§fn from(value: ZeroDteIndicatorType) -> i32
fn from(value: ZeroDteIndicatorType) -> i32
Converts to this type from the input type.
Source§impl Hash for ZeroDteIndicatorType
impl Hash for ZeroDteIndicatorType
Source§impl Ord for ZeroDteIndicatorType
impl Ord for ZeroDteIndicatorType
Source§fn cmp(&self, other: &ZeroDteIndicatorType) -> Ordering
fn cmp(&self, other: &ZeroDteIndicatorType) -> 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 ZeroDteIndicatorType
impl PartialEq for ZeroDteIndicatorType
Source§impl PartialOrd for ZeroDteIndicatorType
impl PartialOrd for ZeroDteIndicatorType
Source§impl Serialize for ZeroDteIndicatorType
impl Serialize for ZeroDteIndicatorType
Source§impl TryFrom<i32> for ZeroDteIndicatorType
impl TryFrom<i32> for ZeroDteIndicatorType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ZeroDteIndicatorType, UnknownEnumValue>
fn try_from(value: i32) -> Result<ZeroDteIndicatorType, UnknownEnumValue>
Performs the conversion.
impl Copy for ZeroDteIndicatorType
impl Eq for ZeroDteIndicatorType
impl StructuralPartialEq for ZeroDteIndicatorType
Auto Trait Implementations§
impl Freeze for ZeroDteIndicatorType
impl RefUnwindSafe for ZeroDteIndicatorType
impl Send for ZeroDteIndicatorType
impl Sync for ZeroDteIndicatorType
impl Unpin for ZeroDteIndicatorType
impl UnsafeUnpin for ZeroDteIndicatorType
impl UnwindSafe for ZeroDteIndicatorType
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