Skip to main content

PropertyNameSimple

Enum PropertyNameSimple 

Source
#[repr(i32)]
pub enum PropertyNameSimple {
Show 43 variants PropertySimpleUnknown = 0, PropertySimpleBusinessLongMarginAllowed = 2_101, PropertySimpleBusinessLongMarginMortgageRate = 2_102, PropertySimpleBusinessShortMarginAllowed = 2_103, PropertySimpleBusinessShortMarginInterestRate = 2_104, PropertySimpleBusinessLongMarginBailRate = 2_105, PropertySimpleBusinessShortMarginBailRate = 2_106, PropertySimpleQuotePrice = 2_201, PropertySimpleQuotePriceTodayOpen = 2_202, PropertySimpleQuotePriceLastClose = 2_203, PropertySimpleQuotePriceTodayHigh = 2_204, PropertySimpleQuotePriceTodayLow = 2_205, PropertySimpleQuotePriceChangeRate = 2_206, PropertySimpleQuotePriceBid = 2_207, PropertySimpleQuotePriceAsk = 2_208, PropertySimpleQuotePriceTo52weekHighRatio = 2_209, PropertySimpleQuotePriceTo52weekLowRatio = 2_210, PropertySimpleQuotePriceTodayHighTo52weekHighRatio = 2_211, PropertySimpleQuotePriceTodayLowTo52weekLowRatio = 2_212, PropertySimpleQuotePriceChangeIn5min = 2_213, PropertySimpleQuotePriceChangeFromBeginningOfThisYear = 2_214, PropertySimpleQuoteVolumeBid = 2_215, PropertySimpleQuoteVolumeAsk = 2_216, PropertySimpleQuoteVolumeRatio = 2_217, PropertySimpleQuoteBidAskRatio = 2_218, PropertySimpleQuoteLotPrice = 2_219, PropertySimpleInfoMarketCapital = 2_301, PropertySimpleInfoPeAnnual = 2_302, PropertySimpleInfoPeTtm = 2_303, PropertySimpleInfoPb = 2_304, PropertySimpleInfoDividendRatio = 2_305, PropertySimpleInfoListedDate = 2_306, PropertySimpleInfoListedDays = 2_307, PropertySimpleQuoteBeforePrice = 2_401, PropertySimpleQuoteBeforePriceChange = 2_402, PropertySimpleQuoteBeforePriceChangePercentage = 2_403, PropertySimpleQuoteBeforeVolume = 2_404, PropertySimpleQuoteBeforeTurnover = 2_405, PropertySimpleQuoteAfterPrice = 2_406, PropertySimpleQuoteAfterPriceChange = 2_407, PropertySimpleQuoteAfterPriceChangePercentage = 2_408, PropertySimpleQuoteAfterVolume = 2_409, PropertySimpleQuoteAfterTurnover = 2_410,
}

Variants§

§

PropertySimpleUnknown = 0

未知

§

PropertySimpleBusinessLongMarginAllowed = 2_101

是否允许融资 (0 = 不允许,1 = 允许)

§

PropertySimpleBusinessLongMarginMortgageRate = 2_102

融资抵押率 (单位:0.001% 倍率:100000)

§

PropertySimpleBusinessShortMarginAllowed = 2_103

是否允许融券 (0 = 不允许,1 = 允许)

§

PropertySimpleBusinessShortMarginInterestRate = 2_104

融券利息率 (单位:0.0001% 倍率:1000000)

§

PropertySimpleBusinessLongMarginBailRate = 2_105

融资保证金率 (单位:0.001% 倍率:100000)

§

PropertySimpleBusinessShortMarginBailRate = 2_106

融券保证金率 (单位:0.001% 倍率:100000)

§

PropertySimpleQuotePrice = 2_201

最新价格 (单位:0.001元 倍率:1000)

§

PropertySimpleQuotePriceTodayOpen = 2_202

今开价 (单位:0.001元 倍率:1000)

§

PropertySimpleQuotePriceLastClose = 2_203

昨收价 (单位:0.001元 倍率:1000)

§

PropertySimpleQuotePriceTodayHigh = 2_204

今最高价 (单位:0.001元 倍率:1000)

§

PropertySimpleQuotePriceTodayLow = 2_205

今最低价 (单位:0.001元 倍率:1000)

§

PropertySimpleQuotePriceChangeRate = 2_206

涨跌速率 (单位:0.001% 倍率:100000)

§

PropertySimpleQuotePriceBid = 2_207

买入价 (单位:0.001元 倍率:1000)

§

PropertySimpleQuotePriceAsk = 2_208

卖出价 (单位:0.001元 倍率:1000)

§

PropertySimpleQuotePriceTo52weekHighRatio = 2_209

(现价 - 52周最高)/52周最高 (单位:0.001% 倍率:100000)

§

PropertySimpleQuotePriceTo52weekLowRatio = 2_210

(现价 - 52周最低)/52周最低 (单位:0.001% 倍率:100000)

§

PropertySimpleQuotePriceTodayHighTo52weekHighRatio = 2_211

(今日最高 - 52周最高)/52周最高 (单位:0.001% 倍率:100000)

§

PropertySimpleQuotePriceTodayLowTo52weekLowRatio = 2_212

(今日最低 - 52周最低)/52周最低 (单位:0.001% 倍率:100000)

§

PropertySimpleQuotePriceChangeIn5min = 2_213

五分钟价格涨跌幅 (单位:0.001% 倍率:100000)

§

PropertySimpleQuotePriceChangeFromBeginningOfThisYear = 2_214

年初至今价格涨跌幅 (单位:0.001% 倍率:100000)

§

PropertySimpleQuoteVolumeBid = 2_215

买入量 (单位:1股 倍率:1)

§

PropertySimpleQuoteVolumeAsk = 2_216

买入量 (单位:1股 倍率:1)

§

PropertySimpleQuoteVolumeRatio = 2_217

量比 (单位:0.001% 倍率:100000)

§

PropertySimpleQuoteBidAskRatio = 2_218

委比 (单位:0.001% 倍率:10000000)

§

PropertySimpleQuoteLotPrice = 2_219

每手价格 (单位:0.001元 倍率:1000)

§

PropertySimpleInfoMarketCapital = 2_301

市值 (单位:0.001元 倍率:1000)

§

PropertySimpleInfoPeAnnual = 2_302

年化(静态)市盈率 (单位:0.001% 倍率:100000)

§

PropertySimpleInfoPeTtm = 2_303

TTM市盈率 (单位:0.001% 倍率:100000)

§

PropertySimpleInfoPb = 2_304

市净率 (单位:0.001% 倍率:100000)

§

PropertySimpleInfoDividendRatio = 2_305

股息率 (单位:0.001% 倍率:100000)

§

PropertySimpleInfoListedDate = 2_306

上市时间(时间戳)

§

PropertySimpleInfoListedDays = 2_307

上市天数(单位:1,倍率: 1)

§

PropertySimpleQuoteBeforePrice = 2_401

盘前盘后数据

盘前价格(单位:0.001元 倍率:1000)

§

PropertySimpleQuoteBeforePriceChange = 2_402

盘前涨跌额(单位:0.001元 倍率:1000)

§

PropertySimpleQuoteBeforePriceChangePercentage = 2_403

盘前涨跌幅(单位:0.001% 倍率:100000)

§

PropertySimpleQuoteBeforeVolume = 2_404

盘前成交量(单位:1股 倍率:1)

§

PropertySimpleQuoteBeforeTurnover = 2_405

盘前成交额(单位:0.001元 倍率:1000)

§

PropertySimpleQuoteAfterPrice = 2_406

盘后价格(单位:0.001元 倍率:1000)

§

PropertySimpleQuoteAfterPriceChange = 2_407

盘后涨跌额(单位:0.001元 倍率:1000)

§

PropertySimpleQuoteAfterPriceChangePercentage = 2_408

盘后涨跌幅(单位:0.001% 倍率:100000)

§

PropertySimpleQuoteAfterVolume = 2_409

盘后成交量(单位:1股 倍率:1)

§

PropertySimpleQuoteAfterTurnover = 2_410

盘后成交额(单位:0.001元 倍率:1000)

Implementations§

Source§

impl PropertyNameSimple

Source

pub fn is_valid(value: i32) -> bool

Returns true if value is a variant of PropertyNameSimple.

Source

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

👎Deprecated: Use the TryFrom<i32> implementation instead

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

Source§

impl PropertyNameSimple

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 PropertyNameSimple

Source§

fn clone(&self) -> PropertyNameSimple

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 PropertyNameSimple

Source§

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

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

impl Default for PropertyNameSimple

Source§

fn default() -> PropertyNameSimple

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

impl From<PropertyNameSimple> for i32

Source§

fn from(value: PropertyNameSimple) -> i32

Converts to this type from the input type.
Source§

impl Hash for PropertyNameSimple

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 PropertyNameSimple

Source§

fn cmp(&self, other: &PropertyNameSimple) -> 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 PropertyNameSimple

Source§

fn eq(&self, other: &PropertyNameSimple) -> 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 PropertyNameSimple

Source§

fn partial_cmp(&self, other: &PropertyNameSimple) -> 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 PropertyNameSimple

Source§

type Error = UnknownEnumValue

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

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

Performs the conversion.
Source§

impl Copy for PropertyNameSimple

Source§

impl Eq for PropertyNameSimple

Source§

impl StructuralPartialEq for PropertyNameSimple

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