sdk: make content of RawEvent public (#3239)

This way it can be moved out and converted to other types like ruma::Serde::Raw.

Signed-off-by: lilydjwg <lilydjwg@gmail.com>
This commit is contained in:
依云
2024-03-19 19:28:34 +08:00
committed by GitHub
parent 10069fbead
commit 4e8cee162a

View File

@@ -60,7 +60,7 @@ impl EventHandlerContext for Room {
/// Used as a context argument for event handlers (see
/// [`Client::add_event_handler`]).
#[derive(Clone, Debug)]
pub struct RawEvent(Box<RawJsonValue>);
pub struct RawEvent(pub Box<RawJsonValue>);
impl Deref for RawEvent {
type Target = RawJsonValue;