#[repr(i32)]pub enum PriceReminderType {
Show 16 variants
Unknown = 0,
PriceUp = 1,
PriceDown = 2,
ChangeRateUp = 3,
ChangeRateDown = 4,
PriceReminderType5minChangeRateUp = 5,
PriceReminderType5minChangeRateDown = 6,
VolumeUp = 7,
TurnoverUp = 8,
TurnoverRateUp = 9,
BidPriceUp = 10,
AskPriceDown = 11,
BidVolUp = 12,
AskVolUp = 13,
PriceReminderType3minChangeRateUp = 14,
PriceReminderType3minChangeRateDown = 15,
}Expand description
提醒类型
Variants§
Unknown = 0
未知
PriceUp = 1
价格涨到
PriceDown = 2
价格跌到
ChangeRateUp = 3
日涨幅超(该字段为百分比字段,设置时填 20 表示 20%)
ChangeRateDown = 4
日跌幅超(该字段为百分比字段,设置时填 20 表示 20%)
PriceReminderType5minChangeRateUp = 5
5 分钟涨幅超(该字段为百分比字段,设置时填 20 表示 20%)
PriceReminderType5minChangeRateDown = 6
5 分钟跌幅超(该字段为百分比字段,设置时填 20 表示 20%)
VolumeUp = 7
成交量超过
TurnoverUp = 8
成交额超过
TurnoverRateUp = 9
换手率超过(该字段为百分比字段,设置时填 20 表示 20%)
BidPriceUp = 10
买一价高于
AskPriceDown = 11
卖一价低于
BidVolUp = 12
买一量高于
AskVolUp = 13
卖一量高于
PriceReminderType3minChangeRateUp = 14
3 分钟涨幅超(该字段为百分比字段,设置时填 20 表示 20%)
PriceReminderType3minChangeRateDown = 15
3 分钟跌幅超(该字段为百分比字段,设置时填 20 表示 20%)
Implementations§
Source§impl PriceReminderType
impl PriceReminderType
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 PriceReminderType
impl Clone for PriceReminderType
Source§fn clone(&self) -> PriceReminderType
fn clone(&self) -> PriceReminderType
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 PriceReminderType
impl Debug for PriceReminderType
Source§impl Default for PriceReminderType
impl Default for PriceReminderType
Source§fn default() -> PriceReminderType
fn default() -> PriceReminderType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PriceReminderType
impl<'de> Deserialize<'de> for PriceReminderType
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<PriceReminderType> for i32
impl From<PriceReminderType> for i32
Source§fn from(value: PriceReminderType) -> i32
fn from(value: PriceReminderType) -> i32
Converts to this type from the input type.
Source§impl Hash for PriceReminderType
impl Hash for PriceReminderType
Source§impl Ord for PriceReminderType
impl Ord for PriceReminderType
Source§fn cmp(&self, other: &PriceReminderType) -> Ordering
fn cmp(&self, other: &PriceReminderType) -> 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 PriceReminderType
impl PartialEq for PriceReminderType
Source§impl PartialOrd for PriceReminderType
impl PartialOrd for PriceReminderType
Source§impl Serialize for PriceReminderType
impl Serialize for PriceReminderType
Source§impl TryFrom<i32> for PriceReminderType
impl TryFrom<i32> for PriceReminderType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<PriceReminderType, UnknownEnumValue>
fn try_from(value: i32) -> Result<PriceReminderType, UnknownEnumValue>
Performs the conversion.
impl Copy for PriceReminderType
impl Eq for PriceReminderType
impl StructuralPartialEq for PriceReminderType
Auto Trait Implementations§
impl Freeze for PriceReminderType
impl RefUnwindSafe for PriceReminderType
impl Send for PriceReminderType
impl Sync for PriceReminderType
impl Unpin for PriceReminderType
impl UnwindSafe for PriceReminderType
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