pub enum RequestView {
NewOrder {
side: Side,
order_type: OrderType,
owner_slot: u8,
fee_tier: FeeTier,
order_id: u128,
max_coin_qty: NonZeroU64,
native_pc_qty_locked: Option<NonZeroU64>,
owner: [u64; 4],
client_order_id: Option<NonZeroU64>,
self_trade_behavior: SelfTradeBehavior,
},
CancelOrder {
side: Side,
order_id: u128,
cancel_id: u64,
expected_owner_slot: u8,
expected_owner: [u64; 4],
client_order_id: Option<NonZeroU64>,
},
}Variants§
NewOrder
Fields
§
fee_tier: FeeTier§
max_coin_qty: NonZeroU64§
native_pc_qty_locked: Option<NonZeroU64>§
client_order_id: Option<NonZeroU64>§
self_trade_behavior: SelfTradeBehaviorCancelOrder
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RequestView
impl RefUnwindSafe for RequestView
impl Send for RequestView
impl Sync for RequestView
impl Unpin for RequestView
impl UnwindSafe for RequestView
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more