1 2 3 4 5 6 7 8 9 10 11 12 13 14
use crate::comment::Comment; use crate::from_child; use crate::text::Text; #[derive(Debug)] #[cfg_attr(feature = "json", derive(serde::Deserialize, serde::Serialize))] #[cfg_attr(feature = "json", serde(untagged))] pub enum MJSocialElementChild { Comment(Comment), Text(Text), } from_child!(MJSocialElementChild, Comment); from_child!(MJSocialElementChild, Text);