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.
12 lines
308 B
Rust
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() {}
|