pub struct TrdFilterConditions {
pub code_list: Vec<String>,
pub id_list: Vec<u64>,
pub begin_time: Option<String>,
pub end_time: Option<String>,
pub order_id_ex_list: Vec<String>,
pub filter_market: Option<i32>,
}Expand description
过滤条件,条件组合是“与“不是“或“,用于获取订单、成交、持仓等时二次过滤
Fields§
§code_list: Vec<String>代码过滤,只返回包含这些代码的数据,没传不过滤
id_list: Vec<u64>ID主键过滤,只返回包含这些ID的数据,没传不过滤,订单是orderID、成交是fillID、持仓是positionID
begin_time: Option<String>开始时间,严格按YYYY-MM-DD HH:MM:SS或YYYY-MM-DD HH:MM:SS.MS格式传,对持仓无效,拉历史数据必须填
end_time: Option<String>结束时间,严格按YYYY-MM-DD HH:MM:SS或YYYY-MM-DD HH:MM:SS.MS格式传,对持仓无效,拉历史数据必须填
order_id_ex_list: Vec<String>服务器订单ID,可以用来替代orderID,二选一
filter_market: Option<i32>指定交易市场, 参见TrdMarket的枚举定义
Implementations§
Source§impl TrdFilterConditions
impl TrdFilterConditions
Sourcepub fn begin_time(&self) -> &str
pub fn begin_time(&self) -> &str
Returns the value of begin_time, or the default value if begin_time is unset.
Sourcepub fn end_time(&self) -> &str
pub fn end_time(&self) -> &str
Returns the value of end_time, or the default value if end_time is unset.
Sourcepub fn filter_market(&self) -> i32
pub fn filter_market(&self) -> i32
Returns the value of filter_market, or the default value if filter_market is unset.
Trait Implementations§
Source§impl Clone for TrdFilterConditions
impl Clone for TrdFilterConditions
Source§fn clone(&self) -> TrdFilterConditions
fn clone(&self) -> TrdFilterConditions
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 TrdFilterConditions
impl Debug for TrdFilterConditions
Source§impl Default for TrdFilterConditions
impl Default for TrdFilterConditions
Source§impl<'de> Deserialize<'de> for TrdFilterConditionswhere
TrdFilterConditions: Default,
impl<'de> Deserialize<'de> for TrdFilterConditionswhere
TrdFilterConditions: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for TrdFilterConditions
impl Message for TrdFilterConditions
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 TrdFilterConditions
impl PartialEq for TrdFilterConditions
Source§impl Serialize for TrdFilterConditions
impl Serialize for TrdFilterConditions
impl StructuralPartialEq for TrdFilterConditions
Auto Trait Implementations§
impl Freeze for TrdFilterConditions
impl RefUnwindSafe for TrdFilterConditions
impl Send for TrdFilterConditions
impl Sync for TrdFilterConditions
impl Unpin for TrdFilterConditions
impl UnwindSafe for TrdFilterConditions
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