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

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

Fields

side: Side
order_id: u128
cancel_id: u64
expected_owner_slot: u8
expected_owner: [u64; 4]
client_order_id: Option<NonZeroU64>

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.