add GatewayPayload
This commit is contained in:
parent
f95212b803
commit
a8e3ad0950
|
@ -829,3 +829,15 @@ impl WebSocketEvent for GatewayHeartbeat {}
|
||||||
pub struct GatewayHeartbeatAck {
|
pub struct GatewayHeartbeatAck {
|
||||||
pub op: i32,
|
pub op: i32,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl WebSocketEvent for GatewayHeartbeatAck {}
|
||||||
|
|
||||||
|
#[derive(Debug, Default, Deserialize, Serialize)]
|
||||||
|
pub struct GatewayPayload {
|
||||||
|
pub op: i32,
|
||||||
|
pub d: Option<String>,
|
||||||
|
pub s: Option<i64>,
|
||||||
|
pub t: Option<String>,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl WebSocketEvent for GatewayPayload {}
|
||||||
|
|
Loading…
Reference in New Issue