Added documentation for Event
This commit is contained in:
parent
6d6bd4eaae
commit
6a7f47b6a6
1 changed files with 2 additions and 0 deletions
|
|
@ -2,12 +2,14 @@ use serde::Serialize;
|
|||
|
||||
use crate::models::activity::Activity;
|
||||
|
||||
/// List of EventData to send to Discord - Currently only supports Activity.
|
||||
#[derive(Serialize, Debug)]
|
||||
#[serde(untagged)]
|
||||
pub enum EventData {
|
||||
Activity(Activity),
|
||||
}
|
||||
|
||||
/// List of EventName to send to Discord - Currently only supports Activity.
|
||||
pub enum EventName {
|
||||
Activity,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue