pub enum OrderCondition {
Price {
is_conjunction_connection: bool,
trigger_method: i32,
con_id: i32,
exchange: String,
is_more: bool,
price: f64,
},
Time {
is_conjunction_connection: bool,
is_more: bool,
time: String,
},
Margin {
is_conjunction_connection: bool,
is_more: bool,
percent: f64,
},
Execution {
is_conjunction_connection: bool,
sec_type: String,
exchange: String,
symbol: String,
},
Volume {
is_conjunction_connection: bool,
con_id: i32,
exchange: String,
is_more: bool,
volume: i32,
},
PercentChange {
is_conjunction_connection: bool,
con_id: i32,
exchange: String,
is_more: bool,
change_percent: f64,
},
}Expand description
Order condition.
Variants§
Price
Price condition.
Fields
Time
Time condition.
Fields
Margin
Margin condition.
Fields
Execution
Execution condition.
Fields
Volume
Volume condition.
Fields
PercentChange
Percent-change condition.
Implementations§
Source§impl OrderCondition
impl OrderCondition
Sourcepub fn trigger_method(&self) -> Option<TriggerMethod>
pub fn trigger_method(&self) -> Option<TriggerMethod>
Returns the typed trigger method for a price condition.
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 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