#[repr(i32)]pub enum OptionRankType {
Unknown = 0,
Volume = 1,
Turnover = 2,
Oi = 3,
OiIncrement = 4,
OiDecrement = 5,
OiMarketCap = 6,
OiMarketCapIncrement = 7,
OiMarketCapDecrement = 8,
ChangeRate = 9,
Iv = 10,
}Expand description
期权合约排行类型
Variants§
Unknown = 0
未知
Volume = 1
成交量排行
Turnover = 2
成交额排行
Oi = 3
持仓量排行
OiIncrement = 4
增仓量(日)排行
OiDecrement = 5
减仓量(日)排行
OiMarketCap = 6
持仓额排行
OiMarketCapIncrement = 7
增仓额(日)排行
OiMarketCapDecrement = 8
减仓额(日)排行
ChangeRate = 9
涨跌幅排行
Iv = 10
隐含波动率排行
Implementations§
Source§impl OptionRankType
impl OptionRankType
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 OptionRankType
impl Clone for OptionRankType
Source§fn clone(&self) -> OptionRankType
fn clone(&self) -> OptionRankType
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 OptionRankType
impl Debug for OptionRankType
Source§impl Default for OptionRankType
impl Default for OptionRankType
Source§fn default() -> OptionRankType
fn default() -> OptionRankType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OptionRankType
impl<'de> Deserialize<'de> for OptionRankType
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<OptionRankType> for i32
impl From<OptionRankType> for i32
Source§fn from(value: OptionRankType) -> i32
fn from(value: OptionRankType) -> i32
Converts to this type from the input type.
Source§impl Hash for OptionRankType
impl Hash for OptionRankType
Source§impl Ord for OptionRankType
impl Ord for OptionRankType
Source§fn cmp(&self, other: &OptionRankType) -> Ordering
fn cmp(&self, other: &OptionRankType) -> 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 OptionRankType
impl PartialEq for OptionRankType
Source§impl PartialOrd for OptionRankType
impl PartialOrd for OptionRankType
Source§impl Serialize for OptionRankType
impl Serialize for OptionRankType
Source§impl TryFrom<i32> for OptionRankType
impl TryFrom<i32> for OptionRankType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<OptionRankType, UnknownEnumValue>
fn try_from(value: i32) -> Result<OptionRankType, UnknownEnumValue>
Performs the conversion.
impl Copy for OptionRankType
impl Eq for OptionRankType
impl StructuralPartialEq for OptionRankType
Auto Trait Implementations§
impl Freeze for OptionRankType
impl RefUnwindSafe for OptionRankType
impl Send for OptionRankType
impl Sync for OptionRankType
impl Unpin for OptionRankType
impl UnsafeUnpin for OptionRankType
impl UnwindSafe for OptionRankType
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