use serde::{Deserialize, Serialize};
use super::ReactionTargetType;
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct ReactionTarget {
pub id: String,
#[serde(rename = "type")]
pub target_type: ReactionTargetType,
}
impl ReactionTarget {
pub fn new(id: impl Into<String>, target_type: ReactionTargetType) -> Self {
Self {
id: id.into(),
target_type,
}
}
}