Added documentation for Payload
This commit is contained in:
parent
6a7f47b6a6
commit
35472c0334
1 changed files with 2 additions and 0 deletions
|
|
@ -1,11 +1,13 @@
|
|||
use crate::models::client::event::{EventData, EventName};
|
||||
use serde::Serialize;
|
||||
|
||||
/// List of OpCode to send to Discord App through IPC.
|
||||
pub enum OpCode {
|
||||
HANDSHAKE,
|
||||
MESSAGE,
|
||||
}
|
||||
|
||||
/// Payload object used to encapsulate data to send to Discord Client.
|
||||
#[derive(Serialize, Debug)]
|
||||
pub struct Payload {
|
||||
pub event_name: String,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue