Added documentation for Event

This commit is contained in:
DylanCa 2024-01-13 12:37:18 +01:00
parent 6d6bd4eaae
commit 6a7f47b6a6

View file

@ -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,
}