pub struct OKXWsRequest<T> {
pub id: Option<String>,
pub op: OKXWsOperation,
pub exp_time: Option<String>,
pub args: Vec<T>,
}
Expand description
Generic WebSocket request for OKX trading commands.
Fields§
§id: Option<String>
Client request ID (required for order operations).
op: OKXWsOperation
Operation type (order, cancel-order, amend-order).
exp_time: Option<String>
Request effective deadline. Unix timestamp format in milliseconds. This is when the request itself expires, not related to order expiration.
args: Vec<T>
Arguments payload for the operation.
Trait Implementations§
Source§impl<T: Debug> Debug for OKXWsRequest<T>
impl<T: Debug> Debug for OKXWsRequest<T>
Auto Trait Implementations§
impl<T> Freeze for OKXWsRequest<T>
impl<T> RefUnwindSafe for OKXWsRequest<T>where
T: RefUnwindSafe,
impl<T> Send for OKXWsRequest<T>where
T: Send,
impl<T> Sync for OKXWsRequest<T>where
T: Sync,
impl<T> Unpin for OKXWsRequest<T>where
T: Unpin,
impl<T> UnwindSafe for OKXWsRequest<T>where
T: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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