#[repr(i32)]pub enum ShortSellingSortField {
Show 15 variants
Unknown = 0,
ShortNumberChange = 1,
ShortRatioChange = 2,
ShortNumber = 3,
ShortRatio = 4,
Volume = 5,
PositionVolume = 6,
PositionRatio = 7,
DaysToCover = 8,
WeekAvgVolume = 9,
WeekAvgShortNumber = 10,
WeekAvgShortRatio = 11,
MonthAvgVolume = 12,
MonthAvgShortNumber = 13,
MonthAvgShortRatio = 14,
}Expand description
排序字段
Variants§
Unknown = 0
默认(卖空变化量)
ShortNumberChange = 1
卖空变化量
ShortRatioChange = 2
卖空变化比例
ShortNumber = 3
卖空数量
ShortRatio = 4
卖空比例
Volume = 5
成交量
PositionVolume = 6
空头持仓数量
PositionRatio = 7
空头持仓比例
DaysToCover = 8
回补天数
WeekAvgVolume = 9
近一周日均成交量
WeekAvgShortNumber = 10
近一周日均卖空数量
WeekAvgShortRatio = 11
近一周日均卖空比例
MonthAvgVolume = 12
近一月日均成交量
MonthAvgShortNumber = 13
近一月日均卖空数量
MonthAvgShortRatio = 14
近一月日均卖空比例
Implementations§
Source§impl ShortSellingSortField
impl ShortSellingSortField
Sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true if value is a variant of ShortSellingSortField.
Sourcepub fn from_i32(value: i32) -> Option<ShortSellingSortField>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ShortSellingSortField>
Use the TryFrom<i32> implementation instead
Converts an i32 to a ShortSellingSortField, or None if value is not a valid variant.
Source§impl ShortSellingSortField
impl ShortSellingSortField
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 ShortSellingSortField
impl Clone for ShortSellingSortField
Source§fn clone(&self) -> ShortSellingSortField
fn clone(&self) -> ShortSellingSortField
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 ShortSellingSortField
impl Debug for ShortSellingSortField
Source§impl Default for ShortSellingSortField
impl Default for ShortSellingSortField
Source§fn default() -> ShortSellingSortField
fn default() -> ShortSellingSortField
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ShortSellingSortField
impl<'de> Deserialize<'de> for ShortSellingSortField
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<ShortSellingSortField> for i32
impl From<ShortSellingSortField> for i32
Source§fn from(value: ShortSellingSortField) -> i32
fn from(value: ShortSellingSortField) -> i32
Converts to this type from the input type.
Source§impl Hash for ShortSellingSortField
impl Hash for ShortSellingSortField
Source§impl Ord for ShortSellingSortField
impl Ord for ShortSellingSortField
Source§fn cmp(&self, other: &ShortSellingSortField) -> Ordering
fn cmp(&self, other: &ShortSellingSortField) -> 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 ShortSellingSortField
impl PartialEq for ShortSellingSortField
Source§impl PartialOrd for ShortSellingSortField
impl PartialOrd for ShortSellingSortField
Source§impl Serialize for ShortSellingSortField
impl Serialize for ShortSellingSortField
Source§impl TryFrom<i32> for ShortSellingSortField
impl TryFrom<i32> for ShortSellingSortField
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ShortSellingSortField, UnknownEnumValue>
fn try_from(value: i32) -> Result<ShortSellingSortField, UnknownEnumValue>
Performs the conversion.
impl Copy for ShortSellingSortField
impl Eq for ShortSellingSortField
impl StructuralPartialEq for ShortSellingSortField
Auto Trait Implementations§
impl Freeze for ShortSellingSortField
impl RefUnwindSafe for ShortSellingSortField
impl Send for ShortSellingSortField
impl Sync for ShortSellingSortField
impl Unpin for ShortSellingSortField
impl UnsafeUnpin for ShortSellingSortField
impl UnwindSafe for ShortSellingSortField
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