pub enum Direction {
LONG,
SHORT,
NET,
}Expand description
订单/成交/持仓方向(constant.py:8)。
Variants§
Implementations§
Trait Implementations§
impl Copy for Direction
Source§impl Default for Direction
Python Direction 必填无缺省;Rust Default 取 neutral 的 NET(Python 无法表达空方向)。
impl Default for Direction
Python Direction 必填无缺省;Rust Default 取 neutral 的 NET(Python 无法表达空方向)。
impl Eq for Direction
impl StructuralPartialEq for Direction
Auto Trait Implementations§
impl Freeze for Direction
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnsafeUnpin for Direction
impl UnwindSafe for Direction
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