1
0
Fork 0
ruma/crates/ruma-events/tests/it/ui/15-content-invalid-double-kind.rs
Kévin Commaille 1845b12d29 events: Fix compatibility of event_enum! with EventContent for types which are in both account data types
Finds the types that are the same in GlobalAccountData and RoomAccountData
enums and changes the event type alias name to match the behavior of
EventContent.
2025-06-19 10:03:42 +02:00

12 lines
308 B
Rust

#![allow(unexpected_cfgs)]
use ruma_macros::EventContent;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, Deserialize, Serialize, EventContent)]
#[ruma_event(type = "m.macro.test", kind = MessageLike + GlobalAccountData)]
pub struct MacroTestEventContent {
pub url: String,
}
fn main() {}