pub struct OrderCondition {Show 13 fields
pub type: Option<i32>,
pub is_conjunction_connection: Option<bool>,
pub is_more: Option<bool>,
pub con_id: Option<i32>,
pub exchange: Option<String>,
pub symbol: Option<String>,
pub sec_type: Option<String>,
pub percent: Option<i32>,
pub change_percent: Option<f64>,
pub price: Option<f64>,
pub trigger_method: Option<i32>,
pub time: Option<String>,
pub volume: Option<i32>,
}Fields§
§type: Option<i32>§is_conjunction_connection: Option<bool>§is_more: Option<bool>§con_id: Option<i32>§exchange: Option<String>§symbol: Option<String>§sec_type: Option<String>§percent: Option<i32>§change_percent: Option<f64>§price: Option<f64>§trigger_method: Option<i32>§time: Option<String>§volume: Option<i32>Implementations§
Source§impl OrderCondition
impl OrderCondition
Sourcepub fn is_conjunction_connection(&self) -> bool
pub fn is_conjunction_connection(&self) -> bool
Returns the value of is_conjunction_connection, or the default value if is_conjunction_connection is unset.
Sourcepub fn is_more(&self) -> bool
pub fn is_more(&self) -> bool
Returns the value of is_more, or the default value if is_more is unset.
Sourcepub fn con_id(&self) -> i32
pub fn con_id(&self) -> i32
Returns the value of con_id, or the default value if con_id is unset.
Sourcepub fn exchange(&self) -> &str
pub fn exchange(&self) -> &str
Returns the value of exchange, or the default value if exchange 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 sec_type(&self) -> &str
pub fn sec_type(&self) -> &str
Returns the value of sec_type, or the default value if sec_type is unset.
Sourcepub fn percent(&self) -> i32
pub fn percent(&self) -> i32
Returns the value of percent, or the default value if percent is unset.
Sourcepub fn change_percent(&self) -> f64
pub fn change_percent(&self) -> f64
Returns the value of change_percent, or the default value if change_percent is unset.
Sourcepub fn trigger_method(&self) -> i32
pub fn trigger_method(&self) -> i32
Returns the value of trigger_method, or the default value if trigger_method is unset.
Trait Implementations§
Source§impl Clone for OrderCondition
impl Clone for OrderCondition
Source§fn clone(&self) -> OrderCondition
fn clone(&self) -> OrderCondition
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 OrderCondition
impl Debug for OrderCondition
Source§impl Default for OrderCondition
impl Default for OrderCondition
Source§impl Message for OrderCondition
impl Message for OrderCondition
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 OrderCondition
impl PartialEq for OrderCondition
impl StructuralPartialEq for OrderCondition
Auto Trait Implementations§
impl Freeze for OrderCondition
impl RefUnwindSafe for OrderCondition
impl Send for OrderCondition
impl Sync for OrderCondition
impl Unpin for OrderCondition
impl UnsafeUnpin for OrderCondition
impl UnwindSafe for OrderCondition
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