#[repr(i32)]pub enum PropertyNameCumulative {
PropertyCumulativeUnknown = 0,
PropertyCumulativeQuotePriceChange = 3_101,
PropertyCumulativeQuotePriceChangePercentage = 3_102,
PropertyCumulativeQuotePriceAmplitude = 3_103,
PropertyCumulativeQuoteAverageVolume = 3_104,
PropertyCumulativeQuoteAverageTurnover = 3_105,
PropertyCumulativeQuoteTurnoverRatio = 3_106,
PropertyCumulativeQuotePriceTodayHighToNDaysHighRatio = 3_107,
PropertyCumulativeQuotePriceTodayLowToNDaysLowRatio = 3_108,
}Variants§
PropertyCumulativeUnknown = 0
未知
PropertyCumulativeQuotePriceChange = 3_101
价格涨跌额 (单位:0.001元 倍率:1000)
PropertyCumulativeQuotePriceChangePercentage = 3_102
价格涨跌幅 (单位:0.001% 倍率:100000)
PropertyCumulativeQuotePriceAmplitude = 3_103
价格振幅 (单位:0.001% 倍率:100000)
PropertyCumulativeQuoteAverageVolume = 3_104
平均成交量 (单位:1股 倍率:1)
PropertyCumulativeQuoteAverageTurnover = 3_105
平均成交额 (单位:0.001元 倍率:1000)
PropertyCumulativeQuoteTurnoverRatio = 3_106
换手率 (单位:0.001% 倍率:100000)
PropertyCumulativeQuotePriceTodayHighToNDaysHighRatio = 3_107
(今日最高 - n日最高)/n日最高 (单位:0.001% 倍率:100000)
PropertyCumulativeQuotePriceTodayLowToNDaysLowRatio = 3_108
(今日最低 - n日最低)/n日最低 (单位:0.001% 倍率:100000)
Implementations§
Source§impl PropertyNameCumulative
impl PropertyNameCumulative
Sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true if value is a variant of PropertyNameCumulative.
Sourcepub fn from_i32(value: i32) -> Option<PropertyNameCumulative>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<PropertyNameCumulative>
Converts an i32 to a PropertyNameCumulative, or None if value is not a valid variant.
Source§impl PropertyNameCumulative
impl PropertyNameCumulative
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 PropertyNameCumulative
impl Clone for PropertyNameCumulative
Source§fn clone(&self) -> PropertyNameCumulative
fn clone(&self) -> PropertyNameCumulative
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 PropertyNameCumulative
impl Debug for PropertyNameCumulative
Source§impl Default for PropertyNameCumulative
impl Default for PropertyNameCumulative
Source§fn default() -> PropertyNameCumulative
fn default() -> PropertyNameCumulative
Returns the “default value” for a type. Read more
Source§impl From<PropertyNameCumulative> for i32
impl From<PropertyNameCumulative> for i32
Source§fn from(value: PropertyNameCumulative) -> i32
fn from(value: PropertyNameCumulative) -> i32
Converts to this type from the input type.
Source§impl Hash for PropertyNameCumulative
impl Hash for PropertyNameCumulative
Source§impl Ord for PropertyNameCumulative
impl Ord for PropertyNameCumulative
Source§fn cmp(&self, other: &PropertyNameCumulative) -> Ordering
fn cmp(&self, other: &PropertyNameCumulative) -> 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 PropertyNameCumulative
impl PartialEq for PropertyNameCumulative
Source§impl PartialOrd for PropertyNameCumulative
impl PartialOrd for PropertyNameCumulative
Source§impl TryFrom<i32> for PropertyNameCumulative
impl TryFrom<i32> for PropertyNameCumulative
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<PropertyNameCumulative, UnknownEnumValue>
fn try_from(value: i32) -> Result<PropertyNameCumulative, UnknownEnumValue>
Performs the conversion.
impl Copy for PropertyNameCumulative
impl Eq for PropertyNameCumulative
impl StructuralPartialEq for PropertyNameCumulative
Auto Trait Implementations§
impl Freeze for PropertyNameCumulative
impl RefUnwindSafe for PropertyNameCumulative
impl Send for PropertyNameCumulative
impl Sync for PropertyNameCumulative
impl Unpin for PropertyNameCumulative
impl UnsafeUnpin for PropertyNameCumulative
impl UnwindSafe for PropertyNameCumulative
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.