Skip to main content

FieldId

#[repr(i32)]
pub enum FieldId {
Show 49 variants Unknown = 0, Code = 1, Name = 2, IssuerId = 4, StockOwner = 5, WarrantType = 6, ConversionRatio = 7, CurrentPrice = 8, StreetRatio = 9, Volume = 10, MaturityDate = 11, StrikePrice = 12, Premium = 13, RecoveryPrice = 14, ImpliedVolatility = 15, LeverageRatio = 16, PriceRecoveryRatio = 17, Delta = 18, Status = 19, IpoTime = 20, BuyVol = 21, SellVol = 22, EffectiveLeverage = 23, LastClosePrice = 24, Turnover = 25, SellPrice = 26, BuyPrice = 27, HighPrice = 28, LowPrice = 29, RatioItmOtm = 30, BreakEvenPoint = 31, AmplitudePrice = 32, ScoreFaxing = 33, LastTradeDate = 34, StreetVolume = 35, LotSize = 36, IssueSize = 37, IpoPrice = 38, LowerStrikePrice = 39, UpperStrikePrice = 40, IwPriceStatus = 41, Sensitivity = 42, ConversionPrice = 43, ChangeRate = 44, ChangeValue = 45, Score = 51, FilterNoTradeStatus = 52, CurrencyCode = 53, StockOwnerPrice = 54,
}
Expand description

FieldId 筛选字段id( 筛选未使用 表示调用方未使用到该筛选项(会返回数据并显示),增量需求要使用该筛选项 需知会@timingxu 并验证下)

Variants§

§

Unknown = 0

默认值,未用

§

Code = 1

【筛选项】股票/证券代码,文本型 (筛选未使用)

§

Name = 2

【筛选项】股票名称,文本型 (筛选未使用)

§

IssuerId = 4

【筛选项】发行商id,数值型

§

StockOwner = 5

【筛选项】正股id,数值型

§

WarrantType = 6

【筛选项】窝轮类型,枚举查看 WarrantType,数值型

§

ConversionRatio = 7

【筛选区间】换股比率,放大10^3

§

CurrentPrice = 8

【筛选区间】当前价,放大10^3

§

StreetRatio = 9

【筛选区间】街货占比,放大10^3

§

Volume = 10

【筛选区间】成交量

§

MaturityDate = 11

【筛选区间】到期日,时间戳(秒)

§

StrikePrice = 12

【筛选区间】行使价,放大10^3

§

Premium = 13

【筛选区间】溢价,放大10^5 ,可为负值

§

RecoveryPrice = 14

【筛选区间】收回价,放大10^3

§

ImpliedVolatility = 15

【筛选区间】引伸波幅,,放大10^2

§

LeverageRatio = 16

【筛选区间】杠杆比率,放大10^3

§

PriceRecoveryRatio = 17

【筛选区间】正股距收回价% 1001000

§

Delta = 18

【筛选区间】对冲值,放大10^3

§

Status = 19

【筛选项】轮证状态,数值型

§

IpoTime = 20

【筛选区间】上市时间,时间戳(秒)

§

BuyVol = 21

【筛选区间】买量

§

SellVol = 22

【筛选区间】卖量

§

EffectiveLeverage = 23

【筛选区间】有效杠杆,放大10^3

§

LastClosePrice = 24

【筛选区间】昨收价,放大10^3 (筛选未使用)

§

Turnover = 25

【筛选区间】成交额

§

SellPrice = 26

【筛选区间】卖价,放大10^3 (筛选未使用)

§

BuyPrice = 27

【筛选区间】买价,放大10^3 (筛选未使用)

§

HighPrice = 28

【筛选区间】最高价,放大10^3 (筛选未使用)

§

LowPrice = 29

【筛选区间】最低价,放大10^3 (筛选未使用)

§

RatioItmOtm = 30

【筛选区间】价内/价外,放大10^5,可为负值

§

BreakEvenPoint = 31

【筛选区间】打和点,放大10^5 (筛选未使用)

§

AmplitudePrice = 32

【筛选区间】振幅,放大10^5 (筛选未使用)

§

ScoreFaxing = 33

【筛选区间】法兴评分,放大10^5 (筛选未使用)

§

LastTradeDate = 34

【筛选区间】最后交易日,时间戳(秒) (筛选未使用)

§

StreetVolume = 35

【筛选区间】街货量 (筛选未使用)

§

LotSize = 36

【筛选区间】每手股数 (筛选未使用)

§

IssueSize = 37

【筛选区间】发行量 (筛选未使用)

§

IpoPrice = 38

【筛选区间】发行价,放大10^3 (筛选未使用)

§

LowerStrikePrice = 39

【筛选区间】下限价,放大10^3 (筛选未使用)

§

UpperStrikePrice = 40

【筛选区间】上限价,放大10^3 (筛选未使用)

§

IwPriceStatus = 41

【筛选项】界内/界外 (筛选未使用)

§

Sensitivity = 42

【筛选区间】敏感度,放大10^3 (筛选未使用)

§

ConversionPrice = 43

【筛选区间】换股价 (筛选未使用)

§

ChangeRate = 44

【筛选区间】涨跌幅,放大10^3

§

ChangeValue = 45

【筛选区间】涨跌额

§

Score = 51

【筛选区间】warrant评分,放大10^5 (筛选未使用)

§

FilterNoTradeStatus = 52

【筛选项】过滤掉上市后无成交窝轮,0:不过滤 1:过滤 数值型

§

CurrencyCode = 53

【筛选项】币种,数值型 (筛选未使用)

§

StockOwnerPrice = 54

【筛选区间】正股价格,放大10^3 (筛选未使用)

Implementations§

Source§

impl FieldId

Source

pub fn is_valid(value: i32) -> bool

Returns true if value is a variant of FieldId.

Source

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

👎Deprecated:

Use the TryFrom<i32> implementation instead

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

Source§

impl FieldId

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 FieldId

Source§

fn clone(&self) -> FieldId

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 FieldId

Source§

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

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

impl Default for FieldId

Source§

fn default() -> FieldId

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

impl From<FieldId> for i32

Source§

fn from(value: FieldId) -> i32

Converts to this type from the input type.
Source§

impl Hash for FieldId

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 FieldId

Source§

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

Source§

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

Source§

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

Source§

type Error = UnknownEnumValue

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

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

Performs the conversion.
Source§

impl Copy for FieldId

Source§

impl Eq for FieldId

Source§

impl StructuralPartialEq for FieldId

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