use crate::events::{AnyGlobalAccountDataEventContent, AnyRoomAccountDataEventContent};
use crate::serde::RawJson;
use salvo::oapi::ToSchema;
use serde::{Deserialize, Serialize};
#[derive(ToSchema, Serialize, Debug)]
pub struct GlobalAccountDataResBody(
)` or `.cast_ref::<T>().deserialize_with_type()` for event
pub RawJson<AnyGlobalAccountDataEventContent>,
);
#[derive(ToSchema, Serialize, Debug)]
pub struct RoomAccountDataResBody(
)` or `.cast_ref::<T>().deserialize_with_type()` for event
pub RawJson<AnyRoomAccountDataEventContent>,
);
#[derive(ToSchema, Deserialize, Debug)]
#[salvo(schema(value_type = Object))]
pub struct SetGlobalAccountDataReqBody(
pub RawJson<AnyGlobalAccountDataEventContent>,
);
#[derive(ToSchema, Deserialize, Debug)]
pub struct SetRoomAccountDataReqBody {
#[salvo(schema(value_type = Object, additional_properties = true))]
pub data: RawJson<AnyRoomAccountDataEventContent>,
}