#[repr(i32)]pub enum RequestSection {
Normal = 0,
Full = 1,
Premarket = 2,
Afterhours = 3,
HkDark = 4,
Overnight = 5,
}Expand description
请求的交易阶段
Variants§
Normal = 0
正常盘中交易阶段,默认
Full = 1
完整交易阶段,包括盘前、盘后交易
Premarket = 2
盘前交易阶段
Afterhours = 3
盘后交易阶段
HkDark = 4
港股暗盘阶段
Overnight = 5
美股夜盘阶段
Implementations§
Source§impl RequestSection
impl RequestSection
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 RequestSection
impl Clone for RequestSection
Source§fn clone(&self) -> RequestSection
fn clone(&self) -> RequestSection
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 RequestSection
impl Debug for RequestSection
Source§impl Default for RequestSection
impl Default for RequestSection
Source§fn default() -> RequestSection
fn default() -> RequestSection
Returns the “default value” for a type. Read more
Source§impl From<RequestSection> for i32
impl From<RequestSection> for i32
Source§fn from(value: RequestSection) -> i32
fn from(value: RequestSection) -> i32
Converts to this type from the input type.
Source§impl Hash for RequestSection
impl Hash for RequestSection
Source§impl Ord for RequestSection
impl Ord for RequestSection
Source§fn cmp(&self, other: &RequestSection) -> Ordering
fn cmp(&self, other: &RequestSection) -> 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 RequestSection
impl PartialEq for RequestSection
Source§impl PartialOrd for RequestSection
impl PartialOrd for RequestSection
Source§impl TryFrom<i32> for RequestSection
impl TryFrom<i32> for RequestSection
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<RequestSection, UnknownEnumValue>
fn try_from(value: i32) -> Result<RequestSection, UnknownEnumValue>
Performs the conversion.
impl Copy for RequestSection
impl Eq for RequestSection
impl StructuralPartialEq for RequestSection
Auto Trait Implementations§
impl Freeze for RequestSection
impl RefUnwindSafe for RequestSection
impl Send for RequestSection
impl Sync for RequestSection
impl Unpin for RequestSection
impl UnsafeUnpin for RequestSection
impl UnwindSafe for RequestSection
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.