Implement event on gateway
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
use serde::Serialize;
|
||||
|
||||
#[derive(Serialize)]
|
||||
pub struct GatewayEvent<T: Serialize> {
|
||||
pub namespace: &'static str,
|
||||
pub action: &'static str,
|
||||
pub content: T,
|
||||
}
|
||||
Reference in New Issue
Block a user