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;
|
use crate::models::activity::Activity;
|
||||||
|
|
||||||
|
/// List of EventData to send to Discord - Currently only supports Activity.
|
||||||
#[derive(Serialize, Debug)]
|
#[derive(Serialize, Debug)]
|
||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
pub enum EventData {
|
pub enum EventData {
|
||||||
Activity(Activity),
|
Activity(Activity),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// List of EventName to send to Discord - Currently only supports Activity.
|
||||||
pub enum EventName {
|
pub enum EventName {
|
||||||
Activity,
|
Activity,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue