1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
use super::InteractionType; use crate::id::{ApplicationId, InteractionId}; use serde::Serialize; /// Data present in an [`Interaction`] of type [`Ping`]. /// /// [`Interaction`]: super::Interaction /// [`Ping`]: super::Interaction::Ping #[derive(Clone, Debug, Eq, PartialEq, Serialize)] #[serde(rename(serialize = "Interaction"))] pub struct Ping { /// ID of the associated application. pub application_id: ApplicationId, /// ID of the interaction. pub id: InteractionId, #[serde(rename = "type")] /// Kind of the interaction. pub kind: InteractionType, /// Token of the interaction. pub token: String, }