#[repr(i32)]pub enum AccumulateField {
Unknown = 0,
ChangeRate = 1,
Amplitude = 2,
Volume = 3,
Turnover = 4,
TurnoverRate = 5,
}Expand description
累积属性
Variants§
Unknown = 0
未知
ChangeRate = 1
涨跌幅(精确到小数点后 3 位,超出部分会被舍弃)例如填写[-10.2,20.4]值区间(该字段为百分比字段,默认不展示 %,如 20 实际对应 20%)
Amplitude = 2
振幅(精确到小数点后 3 位,超出部分会被舍弃)例如填写[0.5,20.6]值区间(该字段为百分比字段,默认不展示 %,如 20 实际对应 20%)
Volume = 3
日均成交量(精确到小数点后 0 位,超出部分会被舍弃)例如填写[2000,70000]值区间(精确到小数点后 0 位,超出部分会被舍弃)
Turnover = 4
日均成交额(精确到小数点后 3 位,超出部分会被舍弃)例如填写[1400,890000]值区间
TurnoverRate = 5
换手率(精确到小数点后 3 位,超出部分会被舍弃)例如填写[2,30]值区间(该字段为百分比字段,默认不展示 %,如 20 实际对应 20%)
Implementations§
Source§impl AccumulateField
impl AccumulateField
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 AccumulateField
impl Clone for AccumulateField
Source§fn clone(&self) -> AccumulateField
fn clone(&self) -> AccumulateField
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 AccumulateField
impl Debug for AccumulateField
Source§impl Default for AccumulateField
impl Default for AccumulateField
Source§fn default() -> AccumulateField
fn default() -> AccumulateField
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AccumulateField
impl<'de> Deserialize<'de> for AccumulateField
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<AccumulateField> for i32
impl From<AccumulateField> for i32
Source§fn from(value: AccumulateField) -> i32
fn from(value: AccumulateField) -> i32
Converts to this type from the input type.
Source§impl Hash for AccumulateField
impl Hash for AccumulateField
Source§impl Ord for AccumulateField
impl Ord for AccumulateField
Source§fn cmp(&self, other: &AccumulateField) -> Ordering
fn cmp(&self, other: &AccumulateField) -> 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 AccumulateField
impl PartialEq for AccumulateField
Source§impl PartialOrd for AccumulateField
impl PartialOrd for AccumulateField
Source§impl Serialize for AccumulateField
impl Serialize for AccumulateField
Source§impl TryFrom<i32> for AccumulateField
impl TryFrom<i32> for AccumulateField
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<AccumulateField, UnknownEnumValue>
fn try_from(value: i32) -> Result<AccumulateField, UnknownEnumValue>
Performs the conversion.
impl Copy for AccumulateField
impl Eq for AccumulateField
impl StructuralPartialEq for AccumulateField
Auto Trait Implementations§
impl Freeze for AccumulateField
impl RefUnwindSafe for AccumulateField
impl Send for AccumulateField
impl Sync for AccumulateField
impl Unpin for AccumulateField
impl UnwindSafe for AccumulateField
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