pub struct UnderlyingIndicator {
pub indicator_type: Option<i32>,
pub indicator_value: Option<IndicatorValue>,
pub stock_strategy_list: Vec<String>,
pub plate_list: Vec<Plate>,
pub sub_indicator_list: Vec<SubIndicator>,
pub stock_strategy_wch_list_stocks: Vec<u64>,
}Expand description
方式2:strategy_param/stock_screener_stock_id_list为空,选股策略通过stock_strategy_list+stock_strategy_wch_list_stocks传递,由svr自行查询策略结果(桌面端使用该方式) 方式1:strategy_param/stock_screener_stock_id_list不为空,选股策略结果通过strategy_param/stock_screener_stock_id_list传递(存量移动端使用该方式) 选股策略传参方式说明: 标的的单个筛选条件
Fields§
§indicator_type: Option<i32>标的筛选因子类型,参考:UnderlyingIndicatorType
indicator_value: Option<IndicatorValue>筛选条件,非特殊字段使用indicator_value,特殊字段使用后面几个单独定义的
标的筛选因子筛选条件(不是下面几个特殊类型时使用)
stock_strategy_list: Vec<String>选股器的策略id的列表,仅在UNDERLYING_INDICATOR_STOCK_SCREENER_ID类型下使用
plate_list: Vec<Plate>板块列表,仅在UNDERLYING_INDICATOR_PLATE类型下使用
sub_indicator_list: Vec<SubIndicator>标的子筛选条件,indicator_type是复合筛选因子时必传该参数,多个SubIndicator之间是交集关系
stock_strategy_wch_list_stocks: Vec<u64>选股策略勾选仅自选时,自选分组下的股票id通过该参数传递
Implementations§
Source§impl UnderlyingIndicator
impl UnderlyingIndicator
Sourcepub fn indicator_type(&self) -> i32
pub fn indicator_type(&self) -> i32
Returns the value of indicator_type, or the default value if indicator_type is unset.
Trait Implementations§
Source§impl Clone for UnderlyingIndicator
impl Clone for UnderlyingIndicator
Source§fn clone(&self) -> UnderlyingIndicator
fn clone(&self) -> UnderlyingIndicator
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 UnderlyingIndicator
impl Debug for UnderlyingIndicator
Source§impl Default for UnderlyingIndicator
impl Default for UnderlyingIndicator
Source§impl Message for UnderlyingIndicator
impl Message for UnderlyingIndicator
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for UnderlyingIndicator
impl PartialEq for UnderlyingIndicator
impl StructuralPartialEq for UnderlyingIndicator
Auto Trait Implementations§
impl Freeze for UnderlyingIndicator
impl RefUnwindSafe for UnderlyingIndicator
impl Send for UnderlyingIndicator
impl Sync for UnderlyingIndicator
impl Unpin for UnderlyingIndicator
impl UnsafeUnpin for UnderlyingIndicator
impl UnwindSafe for UnderlyingIndicator
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