impl PartialEq for ActiveOrder
This commit is contained in:
parent
b5b3455f08
commit
47f17efcfb
@ -129,6 +129,14 @@ impl Hash for ActiveOrder {
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialEq for ActiveOrder {
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
self.id == other.id && self.client_id == other.client_id && self.group_id == other.group_id
|
||||
}
|
||||
}
|
||||
|
||||
impl Eq for ActiveOrder {}
|
||||
|
||||
#[derive(Copy, Clone, Debug, Hash)]
|
||||
pub enum OrderKind {
|
||||
Limit,
|
||||
|
Loading…
Reference in New Issue
Block a user