polyphony_types/events/
hello.rs

1use serde::{Deserialize, Serialize};
2use crate::events::WebSocketEvent;
3
4#[derive(Debug, Default, Deserialize, Serialize)]
5pub struct GatewayHello {
6    pub op: i32,
7    pub d: HelloData,
8}
9
10impl WebSocketEvent for GatewayHello {}
11
12#[derive(Debug, Default, Deserialize, Serialize)]
13pub struct HelloData {
14    pub heartbeat_interval: u128,
15}
16
17impl WebSocketEvent for HelloData {}