pub struct ScreenStrategy {
pub id: Option<String>,
pub name: Option<String>,
pub market_category_list: Vec<i32>,
pub filter_group_list: Vec<FilterGroup>,
}Expand description
策略详情
Fields§
§id: Option<String>策略id(新建策略时无需填写,修改/删除策略时需要,用于查找策略)
name: Option<String>策略名称
market_category_list: Vec<i32>市场品类列表,参考:FTCmdOptionMarket.proto/MarketCategory(必填项,至少一个)
filter_group_list: Vec<FilterGroup>策略中的条件,包含多个条件组,每个条件组中有多个具体的筛选条件,单个组内的结果取【并集】,组与组之间的结果取【交集】 例如:筛选美股期权中,成交量在100-200,或者持仓量在1000-2000的期权: [ 条件组1:{ 条件1: 美股期权; } 条件组2:{ 条件1:成交量在100-200; 条件2:持仓量在1000-2000; } ]
策略的筛选条件组列表,单个组内的筛选条件取【并集】,组与组之间取【交集】
Implementations§
Trait Implementations§
Source§impl Clone for ScreenStrategy
impl Clone for ScreenStrategy
Source§fn clone(&self) -> ScreenStrategy
fn clone(&self) -> ScreenStrategy
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 ScreenStrategy
impl Debug for ScreenStrategy
Source§impl Default for ScreenStrategy
impl Default for ScreenStrategy
Source§impl Message for ScreenStrategy
impl Message for ScreenStrategy
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 ScreenStrategy
impl PartialEq for ScreenStrategy
impl StructuralPartialEq for ScreenStrategy
Auto Trait Implementations§
impl Freeze for ScreenStrategy
impl RefUnwindSafe for ScreenStrategy
impl Send for ScreenStrategy
impl Sync for ScreenStrategy
impl Unpin for ScreenStrategy
impl UnsafeUnpin for ScreenStrategy
impl UnwindSafe for ScreenStrategy
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