pub struct WsOperation {
pub op: String,
pub args: Option<Vec<String>>,
pub req_id: Option<String>,
}Expand description
WebSocket operation message (subscribe, unsubscribe, ping, auth).
Fields§
§op: StringOperation type.
args: Option<Vec<String>>Operation arguments.
req_id: Option<String>Request ID (for tracking responses).
Implementations§
Source§impl WsOperation
impl WsOperation
Trait Implementations§
Source§impl Clone for WsOperation
impl Clone for WsOperation
Source§fn clone(&self) -> WsOperation
fn clone(&self) -> WsOperation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WsOperation
impl Debug for WsOperation
Auto Trait Implementations§
impl Freeze for WsOperation
impl RefUnwindSafe for WsOperation
impl Send for WsOperation
impl Sync for WsOperation
impl Unpin for WsOperation
impl UnwindSafe for WsOperation
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