#[non_exhaustive]pub struct OperationRequest<'a, A> {
pub id: String,
pub op: String,
pub exp_time: Option<String>,
pub args: &'a [A],
}Expand description
Generic WebSocket trade-operation envelope.
OKX docs: https://www.okx.com/docs-v5/en/#overview-websocket
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringClient-provided request ID.
op: StringOKX operation name.
exp_time: Option<String>Optional request effective deadline in Unix milliseconds.
args: &'a [A]Operation arguments.
Implementations§
Source§impl<'a, A> OperationRequest<'a, A>
impl<'a, A> OperationRequest<'a, A>
Trait Implementations§
Source§impl<'a, A: Debug> Debug for OperationRequest<'a, A>
impl<'a, A: Debug> Debug for OperationRequest<'a, A>
Auto Trait Implementations§
impl<'a, A> Freeze for OperationRequest<'a, A>
impl<'a, A> RefUnwindSafe for OperationRequest<'a, A>where
A: RefUnwindSafe,
impl<'a, A> Send for OperationRequest<'a, A>where
A: Sync,
impl<'a, A> Sync for OperationRequest<'a, A>where
A: Sync,
impl<'a, A> Unpin for OperationRequest<'a, A>
impl<'a, A> UnsafeUnpin for OperationRequest<'a, A>
impl<'a, A> UnwindSafe for OperationRequest<'a, A>where
A: RefUnwindSafe,
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