pub struct NotifyMsg {
pub msg_header: Option<MsgHeader>,
pub notice_type: Option<u32>,
pub pstn_ids: Vec<String>,
pub order_ids: Vec<String>,
pub order_fill_ids: Vec<String>,
pub order_op_req_ids: Vec<String>,
pub exchange: Option<String>,
pub version: Option<u64>,
pub orders: Vec<Order>,
pub order_fills: Vec<OrderFill>,
pub origin_request_result: Vec<RequsetResult>,
}Expand description
通知协议
Fields§
§msg_header: Option<MsgHeader>§notice_type: Option<u32>取值参考 NoticeType 定义
pstn_ids: Vec<String>notice_type 为 NOTICE_TYPE_PSTN_UPDATE 有效
order_ids: Vec<String>notice_type 为 NOTICE_TYPE_ORDER_UPDATE 有效
order_fill_ids: Vec<String>notice_type 为 NOTICE_TYPE_ORDER_FILL_UPDATE 有效
order_op_req_ids: Vec<String>notice_type 为 NOTICE_TYPE_ORDER_OP_RESULT 有效
exchange: Option<String>拉取变更时需要带过来,非空字符串则透传,其他(空 或 空串)不传
version: Option<u64>资产变更后的version,非资产变更的推送不填
orders: Vec<Order>notice_type 为 NOTICE_TYPE_ORDER_NTF有效 (仅限高速通道)
order_fills: Vec<OrderFill>notice_type 为 NOTICE_TYPE_ORDER_FILL_NTF有效 (仅限高速通道)
origin_request_result: Vec<RequsetResult>notice_type 为 NOTICE_TYPE_ORDER_OP_RESULT_NTF有效 (仅限高速通道)
Implementations§
Trait Implementations§
Source§impl Message for NotifyMsg
impl Message for NotifyMsg
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.impl StructuralPartialEq for NotifyMsg
Auto Trait Implementations§
impl Freeze for NotifyMsg
impl RefUnwindSafe for NotifyMsg
impl Send for NotifyMsg
impl Sync for NotifyMsg
impl Unpin for NotifyMsg
impl UnsafeUnpin for NotifyMsg
impl UnwindSafe for NotifyMsg
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