@@ -25,7 +25,7 @@ use serde::{Deserialize, Serialize};
2525use super :: SendEventRequest ;
2626use crate :: widget:: StateKeySelector ;
2727
28- #[ derive( Deserialize ) ]
28+ #[ derive( Deserialize , Debug ) ]
2929#[ serde( tag = "action" , rename_all = "snake_case" , content = "data" ) ]
3030pub ( super ) enum FromWidgetRequest {
3131 SupportedApiVersions { } ,
@@ -112,7 +112,7 @@ pub(super) enum ApiVersion {
112112 MSC3846 ,
113113}
114114
115- #[ derive( Deserialize ) ]
115+ #[ derive( Deserialize , Debug ) ]
116116#[ serde( untagged) ]
117117pub ( super ) enum ReadEventRequest {
118118 ReadStateEvent {
@@ -137,19 +137,19 @@ pub(super) struct ReadEventResponse {
137137pub ( crate ) struct SendEventResponse {
138138 /// The room id for the send event.
139139 pub ( crate ) room_id : Option < OwnedRoomId > ,
140- /// The event id of the send event. Its optional because if its a future one
141- /// does not get the event_id at this point.
140+ /// The event id of the send event. It's optional because if it's a future,
141+ /// it does not get the event_id at this point.
142142 pub ( crate ) event_id : Option < OwnedEventId > ,
143143 /// A token to send/insert the future into the DAG.
144144 pub ( crate ) send_token : Option < String > ,
145- /// A token to cancel this future. It will never be send if this is called.
145+ /// A token to cancel this future. It will never be seny if this is called.
146146 pub ( crate ) cancel_token : Option < String > ,
147147 /// The `future_group_id` generated for this future. Used to connect
148- /// multiple futures only one of the connected futures will be sent and
148+ /// multiple futures. Only one of the connected futures will be sent and
149149 /// inserted into the DAG.
150150 pub ( crate ) future_group_id : Option < String > ,
151151 /// A token used to refresh the timer of the future. This allows
152- /// to implement heartbeat like capabilities. An event is only sent once
152+ /// to implement heartbeat- like capabilities. An event is only sent once
153153 /// a refresh in the timeout interval is missed.
154154 ///
155155 /// If the future does not have a timeout this will be `None`.
0 commit comments