pub struct StandardOrder {
pub security: PreviewSecurity,
pub side: u32,
pub order_type: i32,
pub price: Option<String>,
pub order_trade_time_type: Option<u32>,
pub sub_account_id: Option<u64>,
pub sub_account_type: Option<u32>,
pub position_id: Option<String>,
pub volume: Option<Volume>,
}Fields§
§security: PreviewSecurity§side: u32§order_type: i32§price: Option<String>§order_trade_time_type: Option<u32>§sub_account_id: Option<u64>§sub_account_type: Option<u32>§position_id: Option<String>§volume: Option<Volume>Implementations§
Source§impl StandardOrder
impl StandardOrder
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 order_trade_time_type(&self) -> u32
pub fn order_trade_time_type(&self) -> u32
Returns the value of order_trade_time_type, or the default value if order_trade_time_type is unset.
Sourcepub fn sub_account_id(&self) -> u64
pub fn sub_account_id(&self) -> u64
Returns the value of sub_account_id, or the default value if sub_account_id is unset.
Sourcepub fn sub_account_type(&self) -> u32
pub fn sub_account_type(&self) -> u32
Returns the value of sub_account_type, or the default value if sub_account_type is unset.
Sourcepub fn position_id(&self) -> &str
pub fn position_id(&self) -> &str
Returns the value of position_id, or the default value if position_id is unset.
Trait Implementations§
Source§impl Clone for StandardOrder
impl Clone for StandardOrder
Source§fn clone(&self) -> StandardOrder
fn clone(&self) -> StandardOrder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StandardOrder
impl Debug for StandardOrder
Source§impl Default for StandardOrder
impl Default for StandardOrder
Source§impl<'de> Deserialize<'de> for StandardOrderwhere
StandardOrder: Default,
impl<'de> Deserialize<'de> for StandardOrderwhere
StandardOrder: 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
impl Eq for StandardOrder
Source§impl Hash for StandardOrder
impl Hash for StandardOrder
Source§impl Message for StandardOrder
impl Message for StandardOrder
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 StandardOrder
impl PartialEq for StandardOrder
Source§fn eq(&self, other: &StandardOrder) -> bool
fn eq(&self, other: &StandardOrder) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StandardOrder
impl Serialize for StandardOrder
impl StructuralPartialEq for StandardOrder
Auto Trait Implementations§
impl Freeze for StandardOrder
impl RefUnwindSafe for StandardOrder
impl Send for StandardOrder
impl Sync for StandardOrder
impl Unpin for StandardOrder
impl UnsafeUnpin for StandardOrder
impl UnwindSafe for StandardOrder
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