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 crate::models::client::event::{EventData, EventName};
|
||||||
use serde::Serialize;
|
use serde::Serialize;
|
||||||
|
|
||||||
|
/// List of OpCode to send to Discord App through IPC.
|
||||||
pub enum OpCode {
|
pub enum OpCode {
|
||||||
HANDSHAKE,
|
HANDSHAKE,
|
||||||
MESSAGE,
|
MESSAGE,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Payload object used to encapsulate data to send to Discord Client.
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
pub struct Payload {
|
pub struct Payload {
|
||||||
pub event_name: String,
|
pub event_name: String,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue