mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-19 06:04:31 -04:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user