pub struct ManualOrderCreate {
pub cid: Option<u64>,
pub account_id: Option<u64>,
pub order_id_up: Option<String>,
pub symbol: Option<String>,
pub side: Option<u32>,
pub order_qty: Option<String>,
pub price: Option<String>,
pub manual_ord_type: Option<u32>,
pub remark: Option<String>,
}Fields§
§cid: Option<u64>customer_id
account_id: Option<u64>账户ID,长 ID
order_id_up: Option<String>上游订单 ID
symbol: Option<String>symbol,eg. BTC/USD
side: Option<u32>详见公共协议cryptotrade_cmn.OrderSide
order_qty: Option<String>订单数量
price: Option<String>订单价格
manual_ord_type: Option<u32>人工单类型,详见公共协议cryptotrade_cmn.ManualOrdType
remark: Option<String>备注
Implementations§
Source§impl ManualOrderCreate
impl ManualOrderCreate
Sourcepub fn account_id(&self) -> u64
pub fn account_id(&self) -> u64
Returns the value of account_id, or the default value if account_id is unset.
Sourcepub fn order_id_up(&self) -> &str
pub fn order_id_up(&self) -> &str
Returns the value of order_id_up, or the default value if order_id_up is unset.
Sourcepub fn symbol(&self) -> &str
pub fn symbol(&self) -> &str
Returns the value of symbol, or the default value if symbol is unset.
Sourcepub fn order_qty(&self) -> &str
pub fn order_qty(&self) -> &str
Returns the value of order_qty, or the default value if order_qty is unset.
Sourcepub fn price(&self) -> &str
pub fn price(&self) -> &str
Returns the value of price, or the default value if price is unset.
Sourcepub fn manual_ord_type(&self) -> u32
pub fn manual_ord_type(&self) -> u32
Returns the value of manual_ord_type, or the default value if manual_ord_type is unset.
Trait Implementations§
Source§impl Clone for ManualOrderCreate
impl Clone for ManualOrderCreate
Source§fn clone(&self) -> ManualOrderCreate
fn clone(&self) -> ManualOrderCreate
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 ManualOrderCreate
impl Debug for ManualOrderCreate
Source§impl Default for ManualOrderCreate
impl Default for ManualOrderCreate
Source§impl Hash for ManualOrderCreate
impl Hash for ManualOrderCreate
Source§impl Message for ManualOrderCreate
impl Message for ManualOrderCreate
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 ManualOrderCreate
impl PartialEq for ManualOrderCreate
impl Eq for ManualOrderCreate
impl StructuralPartialEq for ManualOrderCreate
Auto Trait Implementations§
impl Freeze for ManualOrderCreate
impl RefUnwindSafe for ManualOrderCreate
impl Send for ManualOrderCreate
impl Sync for ManualOrderCreate
impl Unpin for ManualOrderCreate
impl UnsafeUnpin for ManualOrderCreate
impl UnwindSafe for ManualOrderCreate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
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
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
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
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.