Skip to main content

MarketTradeStatus

Enum MarketTradeStatus 

Source
#[repr(i32)]
pub enum MarketTradeStatus {
Show 37 variants EMtsNone = 0, EMtsAuction = 1, EMtsWaitopen = 2, EMtsMorning = 3, EMtsLunchbreak = 4, EMtsAfternoon = 5, EMtsDayclose = 6, EMtsMaauction = 7, EMtsUsBeforeBegin = 8, EMtsUsBeforeEnd = 9, EMtsUsAfterBegin = 10, EMtsUsAfterEnd = 11, EMtsFutuSwitchDate = 12, EMtsFutureNight = 13, EMtsFutureNightEnd = 14, EMtsFutureDay = 15, EMtsFutureDayBreak = 16, EMtsFutureDayClose = 17, EMtsFutureDayWait = 18, EMtsHkCas = 19, EMtsFutureNightWait = 20, EMtsFutureAfternoon = 21, EMtsUsFutureSwitchDate = 22, EMtsUsFutureOpen = 23, EMtsUsFutureBreak = 24, EMtsUsFutureBreakOver = 25, EMtsUsFutureClose = 26, EMtsStibAfterhoursWait = 27, EMtsStibAfterhoursBegin = 28, EMtsStibAfterhoursEnd = 29, EMtsCloseAuction = 30, EMtsAfternoonEnd = 31, EMtsNight = 32, EMtsOvernightBegin = 33, EMtsOvernightEnd = 34, EMtsTradeAtLast = 35, EMtsTradeAuction = 36,
}

Variants§

§

EMtsNone = 0

§

EMtsAuction = 1

盘前竞价

§

EMtsWaitopen = 2

等待开盘

§

EMtsMorning = 3

上午开盘

§

EMtsLunchbreak = 4

午间休盘

§

EMtsAfternoon = 5

下午开盘

§

EMtsDayclose = 6

收盘

§

EMtsMaauction = 7

§

EMtsUsBeforeBegin = 8

美股的盘前开始

§

EMtsUsBeforeEnd = 9

美股的盘前结束

§

EMtsUsAfterBegin = 10

美股的盘后开始

§

EMtsUsAfterEnd = 11

美股的盘后结束

§

EMtsFutuSwitchDate = 12

富途的切换交易状态,专门用来只是切一下交易日

§

EMtsFutureNight = 13

13~18是期货日市夜市的市场状态

夜市开盘

§

EMtsFutureNightEnd = 14

夜市收盘

§

EMtsFutureDay = 15

日市开盘

§

EMtsFutureDayBreak = 16

日市休市

§

EMtsFutureDayClose = 17

收盘

§

EMtsFutureDayWait = 18

日市等待开盘

§

EMtsHkCas = 19

港股盘后竞价

§

EMtsFutureNightWait = 20

夜市等待开盘

§

EMtsFutureAfternoon = 21

期货下午开盘

§

EMtsUsFutureSwitchDate = 22

美国期货新增加状态

期货切交易日

§

EMtsUsFutureOpen = 23

期货开盘(不分早晚市)

§

EMtsUsFutureBreak = 24

期货中盘休息

§

EMtsUsFutureBreakOver = 25

期货休息后开盘

§

EMtsUsFutureClose = 26

期货收盘

§

EMtsStibAfterhoursWait = 27

科创板新增状态

科创板的盘后撮合时段(15:00-15:05)

§

EMtsStibAfterhoursBegin = 28

科创板的盘后交易开始(15:05-15:30)

§

EMtsStibAfterhoursEnd = 29

科创板的盘后交易结束(15:30之后)

§

EMtsCloseAuction = 30

收市竞价

§

EMtsAfternoonEnd = 31

已收盘

§

EMtsNight = 32

交易中

§

EMtsOvernightBegin = 33

夜盘开始

§

EMtsOvernightEnd = 34

夜盘结束

§

EMtsTradeAtLast = 35

收盘前成交(在交易时间表内)

§

EMtsTradeAuction = 36

收盘前的竞价 (在交易时间表内)

Implementations§

Source§

impl MarketTradeStatus

Source

pub fn is_valid(value: i32) -> bool

Returns true if value is a variant of MarketTradeStatus.

Source

pub fn from_i32(value: i32) -> Option<MarketTradeStatus>

👎Deprecated: Use the TryFrom<i32> implementation instead

Converts an i32 to a MarketTradeStatus, or None if value is not a valid variant.

Source§

impl MarketTradeStatus

Source

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.

Source

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 MarketTradeStatus

Source§

fn clone(&self) -> MarketTradeStatus

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MarketTradeStatus

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for MarketTradeStatus

Source§

fn default() -> MarketTradeStatus

Returns the “default value” for a type. Read more
Source§

impl From<MarketTradeStatus> for i32

Source§

fn from(value: MarketTradeStatus) -> i32

Converts to this type from the input type.
Source§

impl Hash for MarketTradeStatus

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for MarketTradeStatus

Source§

fn cmp(&self, other: &MarketTradeStatus) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for MarketTradeStatus

Source§

fn eq(&self, other: &MarketTradeStatus) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for MarketTradeStatus

Source§

fn partial_cmp(&self, other: &MarketTradeStatus) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl TryFrom<i32> for MarketTradeStatus

Source§

type Error = UnknownEnumValue

The type returned in the event of a conversion error.
Source§

fn try_from(value: i32) -> Result<MarketTradeStatus, UnknownEnumValue>

Performs the conversion.
Source§

impl Copy for MarketTradeStatus

Source§

impl Eq for MarketTradeStatus

Source§

impl StructuralPartialEq for MarketTradeStatus

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

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
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

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
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more