twilight-model 0.5.0

Discord API models for the Twilight ecosystem.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::guild::audit_log::AuditLogChangeKey;
use serde::{Deserialize, Serialize};
use serde_value::Value;

#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct AuditLogChange {
    pub key: AuditLogChangeKey,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub new_value: Option<Value>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub old_value: Option<Value>,
}