Add serde compat for ChannelEvents

This commit is contained in:
Dominik Werder
2022-11-11 20:03:55 +01:00
parent 8ab96e565e
commit 88fa03fb4a
6 changed files with 207 additions and 30 deletions

View File

@@ -62,9 +62,8 @@ impl fmt::Display for CacheUsage {
}
}
/**
Query parameters to request (optionally) X-processed, but not T-processed events.
*/
/// Query parameters to request (optionally) X-processed, but not T-processed events.
// TODO maybe merge with PlainEventsQuery?
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct RawEventsQuery {
pub channel: Channel,
@@ -92,6 +91,10 @@ impl RawEventsQuery {
do_test_stream_error: false,
}
}
pub fn channel(&self) -> &Channel {
&self.channel
}
}
#[derive(Clone, Debug)]