Skip to main content

binance/margin/ws/
outgoing_message.rs

1use serde::Serialize;
2
3/// Margin user data streams are server-push only: the client establishes the
4/// connection with `listenKey` in the URL path and never sends application
5/// messages. This empty enum encodes that at the type level — any
6/// `Command::Send` call against a margin stream is unrepresentable.
7///
8/// Keep-alive is performed out-of-band via REST
9/// (`PUT /sapi/v1/userDataStream`), not over the WebSocket.
10#[derive(Serialize, Debug)]
11pub enum OutgoingMessage {}